Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpii committed Apr 25, 2024
1 parent 2e8311b commit e3ca2f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub(crate) fn error<R>(ast: &dyn quote::ToTokens, message: &str) -> syn::Result<

pub(crate) fn is_option(ty: &syn::Type) -> bool {
let syn::Type::Path(typepath) = ty else {
return false
return false;
};

typepath.path.leading_colon.is_none()
Expand Down

0 comments on commit e3ca2f6

Please sign in to comment.