chore: remove unused temp_fs from FullCtx
Some checks failed
Test / build (map[name:nightly]) (push) Successful in 6m17s
Test / build (map[name:stable]) (push) Successful in 6m13s
Release Please / Release-plz (push) Failing after 31s

This commit is contained in:
Paul Campbell 2024-12-31 10:29:03 +00:00
parent 9c52da41c0
commit 738d7332d2
16 changed files with 1 additions and 23 deletions

View file

@ -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 {

View file

@ -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<PathBuf> 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,

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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,

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {