mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
allow unused for helpers
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user