From 1d030b9d32f539fd38f5ff3335234c5111c3303f Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Mon, 9 May 2022 07:46:52 +0100 Subject: Importer V3 (#395) * start of importer refactor * fish * resh * zsh --- src/command/client/sync.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/command/client/sync.rs') diff --git a/src/command/client/sync.rs b/src/command/client/sync.rs index 6fbf8dfc..af809f3e 100644 --- a/src/command/client/sync.rs +++ b/src/command/client/sync.rs @@ -31,11 +31,7 @@ pub enum Cmd { } impl Cmd { - pub async fn run( - self, - settings: Settings, - db: &mut (impl Database + Send + Sync), - ) -> Result<()> { + pub async fn run(self, settings: Settings, db: &mut impl Database) -> Result<()> { match self { Self::Sync { force } => run(&settings, force, db).await, Self::Login(l) => l.run(&settings).await, @@ -52,11 +48,7 @@ impl Cmd { } } -async fn run( - settings: &Settings, - force: bool, - db: &mut (impl Database + Send + Sync), -) -> Result<()> { +async fn run(settings: &Settings, force: bool, db: &mut impl Database) -> Result<()> { atuin_client::sync::sync(settings, force, db).await?; println!( "Sync complete! {} items in database, force: {}", -- cgit v1.3.1