diff --git a/derive/Cargo.toml b/derive/Cargo.toml index 22c09a37..327a7ced 100644 --- a/derive/Cargo.toml +++ b/derive/Cargo.toml @@ -19,4 +19,4 @@ description = "Implementation of #[derive(Encode, Decode)] for bincode" proc-macro = true [dependencies] -virtue = "0.0.17" +virtue = "0.0.18" diff --git a/derive/src/derive_struct.rs b/derive/src/derive_struct.rs index e948c85a..f6dba0b1 100644 --- a/derive/src/derive_struct.rs +++ b/derive/src/derive_struct.rs @@ -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())