Skip to content

Commit 528e761

Browse files
committed
Ignore missing_fields_in_debug clippy lint for Ident
error: manual `Debug` impl does not include all fields --> src/fallback.rs:853:1 | 853 | / impl Debug for Ident { 854 | | // Ident(proc_macro), Ident(r#union) 855 | | #[cfg(not(span_locations))] 856 | | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { ... | 872 | | } 873 | | } | |_^ | note: this field is unused --> src/fallback.rs:748:5 | 748 | raw: bool, | ^^^^^^^^^ = help: consider including all fields in this `Debug` impl = help: consider calling `.finish_non_exhaustive()` if you intend to ignore fields = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_fields_in_debug = note: `-D clippy::missing-fields-in-debug` implied by `-D clippy::pedantic`
1 parent 42f4f23 commit 528e761

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/fallback.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ impl Display for Ident {
850850
}
851851
}
852852

853+
#[allow(clippy::missing_fields_in_debug)]
853854
impl Debug for Ident {
854855
// Ident(proc_macro), Ident(r#union)
855856
#[cfg(not(span_locations))]

0 commit comments

Comments
 (0)