We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8d1443 commit a79d19dCopy full SHA for a79d19d
src/db/file.rs
@@ -69,8 +69,7 @@ pub fn add_path_into_database<P: AsRef<Path>>(conn: &Connection,
69
-> Result<Json> {
70
use magic::{Cookie, flags};
71
let cookie = try!(Cookie::open(flags::MIME_TYPE));
72
- // FIXME: This is linux specific but idk any alternative
73
- try!(cookie.load(&vec!["/usr/share/misc/magic.mgc"]));
+ try!(cookie.load::<&str>(&[]));
74
75
let trans = try!(conn.transaction());
76
0 commit comments