We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fef094c commit cc7a899Copy full SHA for cc7a899
ptr_meta_derive/src/lib.rs
@@ -52,7 +52,7 @@ fn derive_pointee_impl(mut input: DeriveInput) -> Result<TokenStream, Error> {
52
}
53
};
54
55
- let Some(last_field) = fields.iter().last() else {
+ let Some(last_field) = fields.iter().next_back() else {
56
return Err(Error::new(
57
ident.span(),
58
"fieldless structs always have a provided `Poitnee` impl because
0 commit comments