Skip to content

Commit

Permalink
Remove unnecessary 'mut' in 'uri!' impl.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed May 2, 2023
1 parent c86da13 commit 6ab85b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/codegen/src/bang/uri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 6ab85b6

Please sign in to comment.