Skip to content

Commit a79d19d

Browse files
committed
Load default magic cookie file
1 parent c8d1443 commit a79d19d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/db/file.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ pub fn add_path_into_database<P: AsRef<Path>>(conn: &Connection,
6969
-> Result<Json> {
7070
use magic::{Cookie, flags};
7171
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"]));
72+
try!(cookie.load::<&str>(&[]));
7473

7574
let trans = try!(conn.transaction());
7675

0 commit comments

Comments
 (0)