Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
its-the-shrimp committed Aug 21, 2023
1 parent 1a19956 commit 719edac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/yew-macro/src/derive_props/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ impl<'a> PropFieldCheck<'a> {
}

fn is_path_segments_an_option<'a, T>(mut iter: impl Iterator<Item = &'a T>) -> bool
where T: 'a + ?Sized + PartialEq<str> {
where
T: 'a + ?Sized + PartialEq<str>,
{
iter.next().map_or(false, |first| {
first == "Option"
|| (first == "std" || first == "core")
Expand All @@ -320,7 +322,9 @@ fn is_path_an_option(path: &Path) -> bool {
}

fn is_path_segments_a_string<'a, T>(mut iter: impl Iterator<Item = &'a T>) -> bool
where T: 'a + ?Sized + PartialEq<str> {
where
T: 'a + ?Sized + PartialEq<str>,
{
iter.next().map_or(false, |first| {
first == "String"
|| (first == "std" || first == "alloc")
Expand Down

0 comments on commit 719edac

Please sign in to comment.