fmt, clippy

This commit is contained in:
2026-08-23 01:46:04 +02:00
parent c2e1288bc5
commit 4a8ff9ac0d
11 changed files with 108 additions and 56 deletions
+6 -3
View File
@@ -5,7 +5,7 @@
use std::path::Path;
use crate::debian::checksums::FileChecksums;
use crate::debian::control::{write_paragraph, Paragraph};
use crate::debian::control::{Paragraph, write_paragraph};
use crate::debian::files::FilesList;
/// Everything needed to render a `.changes` file.
@@ -165,7 +165,10 @@ mod tests {
"verylongpkgname - short (udeb)"
);
let long_summary = "x".repeat(100);
assert_eq!(format_description("p", "deb", &long_summary).len(), 10 + 3 + 65);
assert_eq!(
format_description("p", "deb", &long_summary).len(),
10 + 3 + 65
);
}
#[test]
@@ -230,7 +233,7 @@ mod tests {
assert_eq!(
files_value,
"\n<md5> 8 utils optional pkg_1.0.dsc"
.replace("<md5>", &files_value.split_whitespace().next().unwrap_or(""))
.replace("<md5>", files_value.split_whitespace().next().unwrap_or(""))
);
}
}