diff --git a/src/import/tests/mod.rs b/src/import/tests/mod.rs index 9c9cfdb..802a63e 100644 --- a/src/import/tests/mod.rs +++ b/src/import/tests/mod.rs @@ -35,7 +35,6 @@ fn ctx_fs() -> (FullCtx, TempFileSystem) { ( FullCtx { fs: fs.as_real(), - temp_fs: fs.clone(), net: mock_net.into(), prt: kxio::print::standard(), cfg: AppConfig { diff --git a/src/lib.rs b/src/lib.rs index b0a697c..b106738 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,12 +4,7 @@ use std::path::PathBuf; use clap::Parser; use color_eyre::eyre::eyre; use config::AppConfig; -use kxio::{ - fs::{FileSystem, TempFileSystem}, - kxeprintln as e, kxprintln as p, - net::Net, - print::Printer, -}; +use kxio::{fs::FileSystem, kxeprintln as e, kxprintln as p, net::Net, print::Printer}; use tokio::time::Instant; use crate::{nextcloud::client::DeckClient, trello::client::TrelloClient}; @@ -88,7 +83,6 @@ impl From for Ctx { #[derive(Clone)] pub(crate) struct FullCtx { pub fs: FileSystem, - pub temp_fs: TempFileSystem, pub net: Net, pub prt: Printer, pub cfg: AppConfig, @@ -145,7 +139,6 @@ pub async fn run(ctx: &Ctx, commands: &Commands) -> color_eyre::Result<()> { .command .execute(&FullCtx { fs: ctx.fs.clone(), - temp_fs: kxio::fs::temp()?, net: ctx.net.clone(), prt: ctx.prt.clone(), cfg, diff --git a/src/nextcloud/tests/board/create_label.rs b/src/nextcloud/tests/board/create_label.rs index d589f2b..27cca15 100644 --- a/src/nextcloud/tests/board/create_label.rs +++ b/src/nextcloud/tests/board/create_label.rs @@ -34,7 +34,6 @@ fn ctx() -> FullCtx { FullCtx { fs: fs.as_real(), - temp_fs: fs.clone(), net: mock_net.into(), prt: given::a_printer(), cfg: AppConfig { diff --git a/src/nextcloud/tests/card/add_attachment.rs b/src/nextcloud/tests/card/add_attachment.rs index 3527c45..2446e47 100644 --- a/src/nextcloud/tests/card/add_attachment.rs +++ b/src/nextcloud/tests/card/add_attachment.rs @@ -51,7 +51,6 @@ fn ctx_path() -> (FullCtx, PathBuf, TempFileSystem) { ( FullCtx { fs: fs.as_real(), - temp_fs: temp_fs.clone(), net: mock_net.into(), prt: given::a_printer(), cfg: AppConfig { diff --git a/src/nextcloud/tests/card/add_label.rs b/src/nextcloud/tests/card/add_label.rs index 5e77c3c..bb4d36e 100644 --- a/src/nextcloud/tests/card/add_label.rs +++ b/src/nextcloud/tests/card/add_label.rs @@ -42,7 +42,6 @@ fn ctx() -> FullCtx { FullCtx { fs: fs.as_real(), - temp_fs: fs.clone(), net: mock_net.into(), prt: given::a_printer(), cfg: AppConfig { diff --git a/src/nextcloud/tests/card/create.rs b/src/nextcloud/tests/card/create.rs index a828926..fbd1ef1 100644 --- a/src/nextcloud/tests/card/create.rs +++ b/src/nextcloud/tests/card/create.rs @@ -33,7 +33,6 @@ fn ctx() -> FullCtx { FullCtx { fs: fs.as_real(), - temp_fs: fs.clone(), net: mock_net.into(), prt: given::a_printer(), cfg: AppConfig { diff --git a/src/nextcloud/tests/card/get.rs b/src/nextcloud/tests/card/get.rs index 3022915..490c0b8 100644 --- a/src/nextcloud/tests/card/get.rs +++ b/src/nextcloud/tests/card/get.rs @@ -38,7 +38,6 @@ fn ctx() -> FullCtx { FullCtx { fs: fs.as_real(), - temp_fs: fs.clone(), net: mock_net.into(), prt: given::a_printer(), cfg: AppConfig { diff --git a/src/nextcloud/tests/deck/get.rs b/src/nextcloud/tests/deck/get.rs index 69deebf..cebd891 100644 --- a/src/nextcloud/tests/deck/get.rs +++ b/src/nextcloud/tests/deck/get.rs @@ -21,7 +21,6 @@ fn ctx() -> FullCtx { FullCtx { fs: fs.as_real(), - temp_fs: fs.clone(), net: mock_net.into(), prt: given::a_printer(), cfg: AppConfig { diff --git a/src/tests/check.rs b/src/tests/check.rs index 92b54b1..6ac7d47 100644 --- a/src/tests/check.rs +++ b/src/tests/check.rs @@ -63,7 +63,6 @@ async fn test_full_ctx_clients() -> Result<()> { let full_ctx = FullCtx { fs: ctx.fs, - temp_fs: fs.clone(), net: ctx.net, prt: ctx.prt, cfg: config, diff --git a/src/tests/given.rs b/src/tests/given.rs index 32d3428..d68a45c 100644 --- a/src/tests/given.rs +++ b/src/tests/given.rs @@ -47,7 +47,6 @@ pub(crate) fn a_nextcloud_config() -> NextcloudConfig { pub(crate) fn a_full_context(fs: TempFileSystem, mock_net: MockNet) -> FullCtx { FullCtx { fs: fs.as_real(), - temp_fs: fs.clone(), net: mock_net.into(), prt: a_printer(), cfg: AppConfig { diff --git a/src/trello/tests/attachment/get.rs b/src/trello/tests/attachment/get.rs index d719f8b..928d95d 100644 --- a/src/trello/tests/attachment/get.rs +++ b/src/trello/tests/attachment/get.rs @@ -50,7 +50,6 @@ fn ctx() -> FullCtx { FullCtx { fs: fs.as_real(), - temp_fs: fs.clone(), net: mock_net.into(), prt: given::a_printer(), cfg: AppConfig { diff --git a/src/trello/tests/attachment/save.rs b/src/trello/tests/attachment/save.rs index 64f1d0c..bc2037b 100644 --- a/src/trello/tests/attachment/save.rs +++ b/src/trello/tests/attachment/save.rs @@ -82,7 +82,6 @@ fn ctx_fs() -> (FullCtx, TempFileSystem) { ( FullCtx { fs: fs.as_real(), - temp_fs: fs.clone(), net: mock_net.into(), prt: given::a_printer(), cfg: AppConfig { diff --git a/src/trello/tests/board/get.rs b/src/trello/tests/board/get.rs index 536f980..d3b7db3 100644 --- a/src/trello/tests/board/get.rs +++ b/src/trello/tests/board/get.rs @@ -35,7 +35,6 @@ fn ctx() -> FullCtx { FullCtx { fs: fs.as_real(), - temp_fs: fs.clone(), net: mock_net.into(), prt: given::a_printer(), cfg: AppConfig { diff --git a/src/trello/tests/card/get.rs b/src/trello/tests/card/get.rs index 578909a..7317733 100644 --- a/src/trello/tests/card/get.rs +++ b/src/trello/tests/card/get.rs @@ -35,7 +35,6 @@ fn ctx() -> FullCtx { FullCtx { fs: fs.as_real(), - temp_fs: fs.clone(), net: mock_net.into(), prt: given::a_printer(), cfg: AppConfig { diff --git a/src/trello/tests/member/get.rs b/src/trello/tests/member/get.rs index a6dac93..15da818 100644 --- a/src/trello/tests/member/get.rs +++ b/src/trello/tests/member/get.rs @@ -27,7 +27,6 @@ fn ctx() -> FullCtx { FullCtx { fs: fs.as_real(), - temp_fs: fs.clone(), net: mock_net.into(), prt: given::a_printer(), cfg: AppConfig { diff --git a/src/trello/tests/stack/get.rs b/src/trello/tests/stack/get.rs index 20bf3bb..8920cc3 100644 --- a/src/trello/tests/stack/get.rs +++ b/src/trello/tests/stack/get.rs @@ -37,7 +37,6 @@ fn ctx() -> FullCtx { FullCtx { fs: fs.as_real(), - temp_fs: fs.clone(), net: mock_net.into(), prt: given::a_printer(), cfg: AppConfig {