From 486389d6fffe54305fb014b4a6fa623c4a468c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20L=C3=B3pez?= Date: Sat, 11 Jan 2025 21:54:41 +0100 Subject: [PATCH] cli: remove calls to Io::clone() as it is now Copy --- cli/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);