From 771f944af447c202eba045936a36dee71ab797ac Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 4 Sep 2024 11:32:05 +0100 Subject: refactor: fix imports, etc based on restructure move some functions out of ngit and into lib/mod and lib/git_events remove MockConnect from binaries so it is only used in the library. this was done: * mainly because automocks were not being imported from lib into each binary * but also because the these functions were being tested with MockConnect --- src/lib/login/mod.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/lib/login/mod.rs') diff --git a/src/lib/login/mod.rs b/src/lib/login/mod.rs index 19bb97c..7364edf 100644 --- a/src/lib/login/mod.rs +++ b/src/lib/login/mod.rs @@ -19,11 +19,14 @@ use crate::{ Interactor, InteractorPrompt, PromptConfirmParms, PromptInputParms, PromptPasswordParms, }, client::{fetch_public_key, get_event_from_global_cache, Connect}, - config::{UserMetadata, UserRef, UserRelayRef, UserRelays}, git::{Repo, RepoActions}, - key_handling::encryption::{decrypt_key, encrypt_key}, }; +mod key_encryption; +use key_encryption::{decrypt_key, encrypt_key}; +mod user; +use user::{UserMetadata, UserRef, UserRelayRef, UserRelays}; + /// handles the encrpytion and storage of key material #[allow(clippy::too_many_arguments)] pub async fn launch( -- cgit v1.2.3