Skip to content

Commit

Permalink
style(jack-in): fix minor formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gnunicorn committed Oct 17, 2022
1 parent 46ebc48 commit d2cd7c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions crates/matrix-sdk-crypto/src/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1584,7 +1584,7 @@ pub(crate) mod tests {
api::{
client::{
keys::{claim_keys, get_keys, upload_keys},
sync::sync_events::v3::{DeviceLists, ToDevice},
sync::sync_events::v3::DeviceLists,
},
IncomingResponse,
},
Expand Down Expand Up @@ -2340,8 +2340,10 @@ pub(crate) mod tests {
let changed_devices = DeviceLists::new();
let key_counts = Default::default();

let _ =
bob.receive_sync_changes(vec![event], &changed_devices, &key_counts, None).await.unwrap();
let _ = bob
.receive_sync_changes(vec![event], &changed_devices, &key_counts, None)
.await
.unwrap();

let group_session = GroupSession::new(SessionConfig::version_1());
let session_key = group_session.session_key();
Expand Down
2 changes: 1 addition & 1 deletion labs/jack-in/src/client/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use eyre::{Result, WrapErr};
use futures::{pin_mut, StreamExt};
use tokio::sync::mpsc;
use tracing::{error, warn, info};
use tracing::{error, info, warn};

pub mod state;

Expand Down
6 changes: 3 additions & 3 deletions labs/jack-in/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ struct Opt {
#[structopt(short, long, default_value = "http://localhost:8008", env = "JACKIN_SYNC_PROXY")]
sliding_sync_proxy: String,

/// The password of your account. If not given and no database found, it will prompt you for it
/// The password of your account. If not given and no database found, it
/// will prompt you for it
#[structopt(short, long, env = "JACKIN_PASSWORD")]
password: Option<String>,

Expand Down Expand Up @@ -176,7 +177,6 @@ async fn main() -> Result<()> {
}
#[cfg(not(feature = "file-logging"))]
{

tui_logger::init_logger(log::LevelFilter::Trace).unwrap();
// Set default level for unknown targets to Trace
tui_logger::set_default_level(log::LevelFilter::Warn);
Expand Down Expand Up @@ -212,7 +212,7 @@ async fn main() -> Result<()> {
let data_path =
PathBuf::from(app_root(AppDataType::UserData, &APP_INFO)?).join(sanitize(user_id.as_str()));
if opt.fresh {
// drop the datbase first;
// drop the database first;
std::fs::remove_dir_all(&data_path)?;
}
std::fs::create_dir_all(&data_path)?;
Expand Down

0 comments on commit d2cd7c9

Please sign in to comment.