Reduce vault code duplication with macros

This commit is contained in:
Joscha 2022-09-09 16:13:47 +02:00
parent d7e19b5eca
commit ff56bb2678
3 changed files with 424 additions and 792 deletions

View file

@ -160,7 +160,7 @@ impl State {
} }
} }
vault.set_euph_cookies(cookie_jar); vault.euph_set_cookies(cookie_jar);
} }
async fn connect(vault: &EuphVault, name: &str) -> anyhow::Result<Option<(ConnTx, ConnRx)>> { async fn connect(vault: &EuphVault, name: &str) -> anyhow::Result<Option<(ConnTx, ConnRx)>> {

View file

@ -151,7 +151,7 @@ async fn main() -> anyhow::Result<()> {
} }
Command::ClearCookies => { Command::ClearCookies => {
println!("Clearing cookies"); println!("Clearing cookies");
vault.set_euph_cookies(CookieJar::new()); vault.euph_set_cookies(CookieJar::new());
} }
} }

File diff suppressed because it is too large Load diff