diff --git a/cli/app.rs b/cli/app.rs index af89f2ab0..2a05a854f 100644 --- a/cli/app.rs +++ b/cli/app.rs @@ -221,7 +221,7 @@ impl From<&Opts> for Settings { .database .as_ref() .map_or(":memory:".to_string(), |p| p.to_string_lossy().to_string()), - io: opts.io.clone(), + io: opts.io, } } } @@ -350,7 +350,7 @@ impl Limbo { let io = { match path { ":memory:" => get_io(DbLocation::Memory, None)?, - _path => get_io(DbLocation::Path, Some(self.opts.io.clone()))?, + _path => get_io(DbLocation::Path, Some(self.opts.io))?, } }; self.io = Arc::clone(&io);