Skip to content

Commit 0ec0b6f

Browse files
authored
Rollup merge of rust-lang#147739 - Diggsey:db-fix-clippy-whitespace, r=samueltardieu
Fix whitespace in rustfmt-excluded clippy file Accidentally introduced in rust-lang#143548
2 parents 61c4323 + 1bfec9f commit 0ec0b6f

File tree

1 file changed

+8
-8
lines changed
  • src/tools/clippy/clippy_utils/src

1 file changed

+8
-8
lines changed

src/tools/clippy/clippy_utils/src/msrvs.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -192,21 +192,21 @@ fn parse_attrs(sess: &Session, attrs: &[impl AttributeExt]) -> Option<RustcVersi
192192

193193
let msrv_attr = msrv_attrs.next()?;
194194

195-
if let Some(duplicate) = msrv_attrs.next_back() {
196-
sess.dcx()
197-
.struct_span_err(duplicate.span(), "`clippy::msrv` is defined multiple times")
198-
.with_span_note(msrv_attr.span(), "first definition found here")
199-
.emit();
200-
}
195+
if let Some(duplicate) = msrv_attrs.next_back() {
196+
sess.dcx()
197+
.struct_span_err(duplicate.span(), "`clippy::msrv` is defined multiple times")
198+
.with_span_note(msrv_attr.span(), "first definition found here")
199+
.emit();
200+
}
201201

202202
let Some(msrv) = msrv_attr.value_str() else {
203203
sess.dcx().span_err(msrv_attr.span(), "bad clippy attribute");
204204
return None;
205205
};
206206

207207
let Some(version) = parse_version(msrv) else {
208-
sess.dcx()
209-
.span_err(msrv_attr.span(), format!("`{msrv}` is not a valid Rust version"));
208+
sess.dcx()
209+
.span_err(msrv_attr.span(), format!("`{msrv}` is not a valid Rust version"));
210210
return None;
211211
};
212212

0 commit comments

Comments
 (0)