mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -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> {
|
fn is_image_file(&mut self, path: &PathBuf) -> Result<bool> {
|
||||||
let file_path = Path::new(&path);
|
let file_path = Path::new(&path);
|
||||||
let supported_extensions = [
|
let supported_extensions = ["jpg", "jpeg", "png", "gif", "svg", "webp", "ico", "avif"];
|
||||||
"jpg", "jpeg", "png", "gif", "svg", "webp", "ico", "avif",
|
|
||||||
];
|
|
||||||
|
|
||||||
if file_path.exists() {
|
if file_path.exists() {
|
||||||
let meta = metadata(file_path)?;
|
let meta = metadata(file_path)?;
|
||||||
|
|
Loading…
Reference in a new issue