Code style

This commit is contained in:
Hocuri
2020-10-09 12:50:59 +02:00
committed by link2xt
parent 719cba68b3
commit ea731a3619

View File

@@ -3,6 +3,7 @@
use std::convert::TryFrom; use std::convert::TryFrom;
use std::time::{Duration, SystemTime}; use std::time::{Duration, SystemTime};
use anyhow::Context as _;
use async_std::path::{Path, PathBuf}; use async_std::path::{Path, PathBuf};
use itertools::Itertools; use itertools::Itertools;
use num_traits::FromPrimitive; use num_traits::FromPrimitive;
@@ -775,10 +776,10 @@ impl Chat {
bail!("Cannot set message; self not in group."); bail!("Cannot set message; self not in group.");
} }
let from = match context.get_config(Config::ConfiguredAddr).await { let from = context
Some(from) => from, .get_config(Config::ConfiguredAddr)
None => bail!("Cannot prepare message for sending, address is not configured."), .await
}; .context("Cannot prepare message for sending, address is not configured.")?;
let new_rfc724_mid = { let new_rfc724_mid = {
let grpid = match self.typ { let grpid = match self.typ {