Doc comments on public API, README version fix, format string cleanup

This commit is contained in:
MattJackson
2026-04-11 21:01:16 +00:00
parent 654fda547b
commit 1c3f300f2f
8 changed files with 67 additions and 27 deletions
+2 -2
View File
@@ -167,7 +167,7 @@ impl KeyDb {
.to_string();
// Try with 0x prefix and without
self.disc_entries
.get(&format!("0x{}", hash))
.get(&format!("0x{hash}"))
.or_else(|| self.disc_entries.get(&hash))
.and_then(|e| e.vuk)
}
@@ -180,7 +180,7 @@ impl KeyDb {
.trim_start_matches("0x")
.to_string();
self.disc_entries
.get(&format!("0x{}", hash))
.get(&format!("0x{hash}"))
.or_else(|| self.disc_entries.get(&hash))
}