fixed tests
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lynne Megido 2021-03-26 05:11:21 +10:00
parent 129aa83ade
commit 7115692f9d
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90

View file

@ -1,8 +1,8 @@
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::parameters::{Parameters, ScanOpts};
use crate::mime_db::MimeDb;
use cfg_if::cfg_if;
use mime_guess::mime::{APPLICATION_OCTET_STREAM, APPLICATION_PDF, IMAGE_JPEG, IMAGE_PNG};
use mime_guess::Mime;
@ -19,12 +19,12 @@ const ZIP_BYTES: &[u8] = b"PK\x03\x04";
cfg_if! {
if #[cfg(any(all(unix, feature = "infer-backend"), all(not(unix), not(feature = "xdg-mime-backend"))))] {
fn get_mime_db() -> InferDb {
InferDb::init()
fn get_mime_db() -> crate::mime_db::InferDb {
crate::mime_db::InferDb::init()
}
} else {
fn get_mime_db() -> XdgDb {
XdgDb::init()
fn get_mime_db() -> crate::mime_db::XdgDb {
crate::mime_db::XdgDb::init()
}
}
}