From 156efcd9a58a53b2498b11428d0f21c24ad3bd1c Mon Sep 17 00:00:00 2001 From: Patrick Mooney Date: Tue, 21 May 2024 15:12:43 -0500 Subject: [PATCH] Fix clippy nits --- codegen/rust/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codegen/rust/src/lib.rs b/codegen/rust/src/lib.rs index 95d04799..a41ba0e7 100644 --- a/codegen/rust/src/lib.rs +++ b/codegen/rust/src/lib.rs @@ -53,10 +53,10 @@ impl Sanitizer { pub fn sanitize_string(s: &mut String) { //TODO sanitize other problematic rust tokens if s == "type" { - *s = "typ".to_owned(); + "typ".clone_into(s) } if s == "match" { - *s = "match_".to_owned(); + "match_".clone_into(s) } } }