From 6ab85b6643289016be5e7905ad5c1fa44e9ce2d6 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Mon, 1 May 2023 17:46:03 -0700 Subject: [PATCH] Remove unnecessary 'mut' in 'uri!' impl. --- core/codegen/src/bang/uri.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/codegen/src/bang/uri.rs b/core/codegen/src/bang/uri.rs index 5ff50d50..175b73da 100644 --- a/core/codegen/src/bang/uri.rs +++ b/core/codegen/src/bang/uri.rs @@ -23,7 +23,7 @@ macro_rules! p { } pub fn prefix_last_segment(path: &mut syn::Path, prefix: &str) { - let mut last_seg = path.segments.last_mut().expect("syn::Path has segments"); + let last_seg = path.segments.last_mut().expect("syn::Path has segments"); last_seg.ident = last_seg.ident.prepend(prefix); }