Deny the clippy::use_debug lint

This commit is contained in:
Oliver Hamlet
2025-04-23 00:16:09 +01:00
parent 2aaa13bd7e
commit 460ab83417
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -55,8 +55,12 @@ impl std::fmt::Display for ArchiveParsingError {
match self {
Self::IoError(_) => write!(f, "an I/O error occurred"),
Self::UnsupportedHeaderVersion(v) => write!(f, "unsupported archive version {v}"),
Self::UnsupportedHeaderArchiveType(a) => write!(f, "unsupported archive type {a:?}"),
Self::UnsupportedArchiveTypeId(t) => write!(f, "unsupported archive type ID {t:?}"),
Self::UnsupportedHeaderArchiveType(a) => {
write!(f, "unsupported archive type {}", a.escape_ascii())
}
Self::UnsupportedArchiveTypeId(t) => {
write!(f, "unsupported archive type ID {}", t.escape_ascii())
}
Self::InvalidRecordsOffset(o) => write!(f, "invalid records offset {o}"),
Self::InvalidFolderNameLengthOffset(o) => {
write!(f, "invalid folder name length offset {o}")
+1 -1
View File
@@ -93,7 +93,7 @@
clippy::unused_result_ok,
clippy::unwrap_in_result,
clippy::unwrap_used,
// clippy::use_debug,
clippy::use_debug,
clippy::verbose_file_reads,
// clippy::wildcard_enum_match_arm,
)]