mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-24 11:22:37 +00:00
Remove unnecessary 'mut' in 'uri!' impl.
This commit is contained in:
parent
284852db19
commit
19e78eae3a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user