docs(cli): example was broken
cargo devel CI / cargo CI (push) Has been cancelled Details

This commit is contained in:
Christoph J. Scherr 2024-07-09 19:51:22 +02:00
parent 7db1833cbb
commit d052fb2b34
1 changed files with 1 additions and 11 deletions

View File

@ -31,17 +31,7 @@ enum ReplCommand {
fn main() -> anyhow::Result<()> {
// You would normally make a proper cli interface with clap before entering the repl. This is
// omitted here for brevity
let _logger = {
let mut this = {
let mut this = Logger::builder();
this.show_time = false;
this
};
let max_level = Level::INFO;
this.max_level = max_level;
this
}
.build()?;
let _logger = Logger::builder().display_time(false).build();
// the compiler can infer that we want to use the ReplCommand enum.
let mut repl = DefaultRepl::<ReplCommand>::default();