Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
juhaku committed Oct 10, 2024
1 parent fe2277f commit 43224fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utoipa-gen/src/schema_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ pub enum KnownFormat {
/// This is not really tokenized, but is actually only for purpose of having some format in
/// case we do not know what the format is actually.
#[allow(unused)]
Unknonw,
Unknown,
}

impl KnownFormat {
Expand Down Expand Up @@ -394,14 +394,14 @@ impl KnownFormat {

#[cfg(feature = "time")]
"PrimitiveDateTime" | "OffsetDateTime" => Self::DateTime,
_ => Self::Unknonw,
_ => Self::Unknown,
};

Ok(variant)
}

pub fn is_known_format(&self) -> bool {
!matches!(self, Self::Unknonw)
!matches!(self, Self::Unknown)
}
}

Expand Down Expand Up @@ -552,7 +552,7 @@ impl ToTokens for KnownFormat {
Self::Custom(value) => tokens.extend(quote!(utoipa::openapi::SchemaFormat::Custom(
String::from(#value)
))),
Self::Unknonw => (), // unknown we just skip it
Self::Unknown => (), // unknown we just skip it
};
}
}
Expand Down

0 comments on commit 43224fc

Please sign in to comment.