Skip to content

Commit

Permalink
refactor!: Move everything Cookie into mod cookie
Browse files Browse the repository at this point in the history
Signed-off-by: robot9001 <[email protected]>
  • Loading branch information
robo9k committed Sep 30, 2023
1 parent be14915 commit 35fdbce
Show file tree
Hide file tree
Showing 3 changed files with 559 additions and 554 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use std::convert::TryInto;

fn file_example() -> Result<(), Box<dyn std::error::Error>> {
// Open a new configuration with flags
let cookie = magic::Cookie::open(magic::CookieFlags::ERROR)?;
let cookie = magic::Cookie::open(magic::cookie::Flags::ERROR)?;

// Load a specific database
// (so exact test text assertion below works regardless of the system's default database version)
Expand Down
2 changes: 1 addition & 1 deletion examples/file-ish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

fn main() -> Result<(), Box<dyn std::error::Error>> {
// Open a new configuration with flags
let cookie = magic::Cookie::open(magic::CookieFlags::ERROR)?;
let cookie = magic::Cookie::open(magic::cookie::Flags::ERROR)?;

// Load the system's default database
let database = &Default::default();
Expand Down
Loading

0 comments on commit 35fdbce

Please sign in to comment.