fmt, clippy
This commit is contained in:
@@ -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(""))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user