idk why this isn't in master yet #94

Merged
cscherrNT merged 79 commits from devel into master 2024-07-22 13:30:20 +02:00
1 changed files with 1 additions and 11 deletions
Showing only changes of commit d052fb2b34 - Show all commits

View File

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