mirror of
https://github.com/chatmail/core.git
synced 2026-05-15 12:56:30 +03:00
refactor: Don't use traits where it's not necessary (#6567)
Traits are bad for readability and compile times.
This commit is contained in:
@@ -209,7 +209,7 @@ async fn imex_inner(
|
||||
.await
|
||||
.context("Cannot create private key or private key not available")?;
|
||||
|
||||
create_folder(context, &path).await?;
|
||||
create_folder(context, path).await?;
|
||||
}
|
||||
|
||||
match what {
|
||||
@@ -600,7 +600,7 @@ where
|
||||
|
||||
/// Imports secret key from a file.
|
||||
async fn import_secret_key(context: &Context, path: &Path, set_default: bool) -> Result<()> {
|
||||
let buf = read_file(context, &path).await?;
|
||||
let buf = read_file(context, path).await?;
|
||||
let armored = std::string::String::from_utf8_lossy(&buf);
|
||||
set_self_key(context, &armored, set_default).await?;
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user