Remove unnecessary 'mut' in 'uri!' impl.

This commit is contained in:
Sergio Benitez 2023-05-01 17:46:03 -07:00
parent c86da13270
commit 6ab85b6643
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ macro_rules! p {
} }
pub fn prefix_last_segment(path: &mut syn::Path, prefix: &str) { 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); last_seg.ident = last_seg.ident.prepend(prefix);
} }