diff --git a/rpcl2-derive/src/lib.rs b/rpcl2-derive/src/lib.rs index a3ca95a..fd7890c 100644 --- a/rpcl2-derive/src/lib.rs +++ b/rpcl2-derive/src/lib.rs @@ -48,8 +48,8 @@ fn struct_field_rename_array(input: &DeriveInput) -> Vec { panic!("expected `name` attribute"); } }); - if let Err(err) = res { - panic!("Error parsing attribute: {}", err); + if let Err(e) = res { + panic!("Error parsing attribute: {e}"); } } });