mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Formatting fix
For some reason this didn't get caught by my pre-push hook :-(
This commit is contained in:
parent
1910b9609e
commit
426790bfcb
1 changed files with 1 additions and 3 deletions
|
@ -153,9 +153,7 @@ impl Collection {
|
|||
|
||||
fn is_image_file(&mut self, path: &PathBuf) -> Result<bool> {
|
||||
let file_path = Path::new(&path);
|
||||
let supported_extensions = [
|
||||
"jpg", "jpeg", "png", "gif", "svg", "webp", "ico", "avif",
|
||||
];
|
||||
let supported_extensions = ["jpg", "jpeg", "png", "gif", "svg", "webp", "ico", "avif"];
|
||||
|
||||
if file_path.exists() {
|
||||
let meta = metadata(file_path)?;
|
||||
|
|
Loading…
Reference in a new issue