Skip to content

Commit

Permalink
Updates to use the new modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
oubiwann committed Jan 4, 2024
1 parent e553ec3 commit 71e5794
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ you prefer to store your config, you'll next need to populate the
`twyg::Opts` struct for your preferred mechanism:

```rust
use twyg;
use twyg::{self, level};

let opts = twyg::Opts{
coloured: true,
level: String::from("debug"),
level: level::debug(),
report_caller: true,

..Default::default()
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ pub use out::{STDERR, STDOUT};
/// Usage example:
///
/// ```rust
/// use twyg;
/// use twyg::{self, level};
///
/// let opts = twyg::Opts{
/// coloured: true,
/// level: Some(String::from("debug")),
/// level: level::debug(),
/// report_caller: true,
///
/// ..Default::default()
Expand Down

0 comments on commit 71e5794

Please sign in to comment.