Fix clippy warnings from tests

This commit is contained in:
Heikki Hellgren authored and David Peter committed 2021-10-17 17:04:46 +02:00
1 parent f2bfedd3a6
commit f592155db7
3 files changed
+128 -125

No files matched your search

+7
View File
@@ -84,6 +84,13 @@ impl ExportManager {
}
}
impl Default for ExportManager {
/// Create a new default ExportManager
fn default() -> Self {
ExportManager::new()
}
}
/// Write the given content to a file with the specified name
fn write_to_file(filename: &str, content: &[u8]) -> Result<()> {
let mut file = OpenOptions::new().write(true).open(filename)?;