This commit is contained in:
parent
129aa83ade
commit
7115692f9d
1 changed files with 5 additions and 5 deletions
|
@ -1,8 +1,8 @@
|
||||||
use crate::inspectors::{mime_extension_lookup, BUF_SIZE};
|
use crate::inspectors::{mime_extension_lookup, BUF_SIZE};
|
||||||
use crate::mime_db::{MimeDb, XdgDb};
|
|
||||||
use crate::{extension_from_path, init_db, scan_directory, scan_from_walkdir};
|
use crate::{extension_from_path, init_db, scan_directory, scan_from_walkdir};
|
||||||
|
|
||||||
use crate::parameters::{Parameters, ScanOpts};
|
use crate::parameters::{Parameters, ScanOpts};
|
||||||
|
use crate::mime_db::MimeDb;
|
||||||
use cfg_if::cfg_if;
|
use cfg_if::cfg_if;
|
||||||
use mime_guess::mime::{APPLICATION_OCTET_STREAM, APPLICATION_PDF, IMAGE_JPEG, IMAGE_PNG};
|
use mime_guess::mime::{APPLICATION_OCTET_STREAM, APPLICATION_PDF, IMAGE_JPEG, IMAGE_PNG};
|
||||||
use mime_guess::Mime;
|
use mime_guess::Mime;
|
||||||
|
@ -19,12 +19,12 @@ const ZIP_BYTES: &[u8] = b"PK\x03\x04";
|
||||||
|
|
||||||
cfg_if! {
|
cfg_if! {
|
||||||
if #[cfg(any(all(unix, feature = "infer-backend"), all(not(unix), not(feature = "xdg-mime-backend"))))] {
|
if #[cfg(any(all(unix, feature = "infer-backend"), all(not(unix), not(feature = "xdg-mime-backend"))))] {
|
||||||
fn get_mime_db() -> InferDb {
|
fn get_mime_db() -> crate::mime_db::InferDb {
|
||||||
InferDb::init()
|
crate::mime_db::InferDb::init()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fn get_mime_db() -> XdgDb {
|
fn get_mime_db() -> crate::mime_db::XdgDb {
|
||||||
XdgDb::init()
|
crate::mime_db::XdgDb::init()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue