mirror of https://github.com/rwf2/Rocket.git
Remove unnecessary 'mut' in 'uri!' impl.
This commit is contained in:
parent
c86da13270
commit
6ab85b6643
|
@ -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