Skip to content

Commit 30ab6a7

Browse files
committed
nits
1 parent a79bf15 commit 30ab6a7

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

typify-impl/src/convert.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,8 +672,9 @@ impl TypeSpace {
672672
} => {
673673
// Eliminate duplicates (they hold no significance); they
674674
// aren't supposed to be there, but we can still handle it.
675-
// Convert the types into a form that puts integers before numbers to ensure that
676-
// integer get matched before numbers in untagged enum generation.
675+
// Convert the types into a form that puts integers before
676+
// numbers to ensure that integer get matched before numbers in
677+
// untagged enum generation.
677678
let unique_types = instance_types
678679
.iter()
679680
.copied()

typify-impl/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ impl StringValidator {
939939
/// This is used for untagged enum generation to ensure that integer values
940940
/// are matched before number values.
941941
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
942-
pub(crate) enum ReorderedInstanceType {
942+
pub(crate) enum ReorderedInstanceType {
943943
/// The JSON schema instance type `null`.
944944
Null,
945945

0 commit comments

Comments
 (0)