mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Deny the clippy::use_debug lint
This commit is contained in:
@@ -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
@@ -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,
|
||||
)]
|
||||
|
||||
Reference in New Issue
Block a user