diff --git a/binrw_derive/src/binrw/codegen/sanitization.rs b/binrw_derive/src/binrw/codegen/sanitization.rs index 95fec88a..97fcd167 100644 --- a/binrw_derive/src/binrw/codegen/sanitization.rs +++ b/binrw_derive/src/binrw/codegen/sanitization.rs @@ -72,7 +72,5 @@ ident_str! { } pub(crate) fn make_ident(ident: &Ident, kind: &str) -> Ident { - let ident_string = ident.to_string(); - let ident_string = ident_string.strip_prefix("r#").unwrap_or(&ident_string); - format_ident!("__binrw_generated_{}_{}", kind, ident_string) + format_ident!("__binrw_generated_{}_{}", kind, ident) }