Skip to content

Commit cc7a899

Browse files
committed
Appease clippy
1 parent fef094c commit cc7a899

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ptr_meta_derive/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fn derive_pointee_impl(mut input: DeriveInput) -> Result<TokenStream, Error> {
5252
}
5353
};
5454

55-
let Some(last_field) = fields.iter().last() else {
55+
let Some(last_field) = fields.iter().next_back() else {
5656
return Err(Error::new(
5757
ident.span(),
5858
"fieldless structs always have a provided `Poitnee` impl because

0 commit comments

Comments
 (0)