cargo clippy

This commit is contained in:
weisd
2024-11-04 09:08:21 +08:00
parent 2aba454318
commit 69e19fe8ab
15 changed files with 212 additions and 178 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ impl InlineData {
self.0 = buf.to_vec()
}
pub fn as_slice(&self) -> &[u8] {
&self.0.as_slice()
self.0.as_slice()
}
pub fn version_ok(&self) -> bool {
if self.0.is_empty() {