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

This commit is contained in:
Sergio Benitez 2023-05-01 17:46:03 -07:00
parent 284852db19
commit 19e78eae3a
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) {
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);
}