Skip to content

Commit

Permalink
Fixed new lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorKoenders committed Nov 20, 2024
1 parent c7bce7b commit 253cf73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion derive/src/derive_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ impl DeriveStruct {
pub fn generate_encode(self, generator: &mut Generator) -> Result<()> {
let crate_name = &self.attributes.crate_name;
generator
.impl_for(&format!("{}::Encode", crate_name))
.impl_for(format!("{}::Encode", crate_name))
.modify_generic_constraints(|generics, where_constraints| {
if let Some((bounds, lit)) =
(self.attributes.encode_bounds.as_ref()).or(self.attributes.bounds.as_ref())
Expand Down

0 comments on commit 253cf73

Please sign in to comment.