diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-11-29 11:01:17 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-12-01 17:34:43 +0000 |
| commit | f2b97a8bfe23cdda293908e3c3e01f2613787168 (patch) | |
| tree | a7fe31c1e002272731591d9f0e2337f19de420d3 /compiler/rustc_session/src/errors.rs | |
| parent | 9c0bc3028a575eece6d4e8fbc6624cb95b9c9893 (diff) | |
| download | rust-f2b97a8bfe23cdda293908e3c3e01f2613787168.tar.gz rust-f2b97a8bfe23cdda293908e3c3e01f2613787168.zip | |
Remove useless borrows and derefs
Diffstat (limited to 'compiler/rustc_session/src/errors.rs')
| -rw-r--r-- | compiler/rustc_session/src/errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/errors.rs b/compiler/rustc_session/src/errors.rs index 2f7055e3cc5..a580a996c5c 100644 --- a/compiler/rustc_session/src/errors.rs +++ b/compiler/rustc_session/src/errors.rs @@ -321,7 +321,7 @@ pub fn report_lit_error(sess: &ParseSess, err: LitError, lit: token::Lit, span: LitError::InvalidIntSuffix => { let suf = suffix.expect("suffix error with no suffix"); let suf = suf.as_str(); - if looks_like_width_suffix(&['i', 'u'], &suf) { + if looks_like_width_suffix(&['i', 'u'], suf) { // If it looks like a width, try to be helpful. sess.emit_err(InvalidIntLiteralWidth { span, width: suf[1..].into() }); } else if let Some(fixed) = fix_base_capitalisation(suf) { |
