allow unused for helpers

This commit is contained in:
Henry Schimke
2023-01-13 11:05:03 -06:00
parent 5f91e4149c
commit 05887ccd05

View File

@@ -277,14 +277,13 @@ pub fn save_svg(file_name: &str, bit_matrix: &BitMatrix) -> Result<(), Exception
pub fn save_file(file_name: &str, bit_matrix: &BitMatrix) -> Result<(), Exceptions> {
let path = PathBuf::from(file_name);
#[allow(unused_variables)]
let ext: String = if let Some(e) = path.extension() {
e.to_string_lossy().to_string()
} else {
String::default()
};
let _ = &ext;
#[cfg(feature = "svg_write")]
if ext == "svg" {
return save_svg(file_name, bit_matrix);