style: minor changes
This commit is contained in:
parent
ce98afb11d
commit
638dc75cb7
@ -11,7 +11,7 @@ impl UserData for Client {
|
|||||||
Ok(this.0.rooms().into_iter().map(Room).collect::<Vec<_>>())
|
Ok(this.0.rooms().into_iter().map(Room).collect::<Vec<_>>())
|
||||||
});
|
});
|
||||||
f.add_field_method_get("user_id", |_, this| {
|
f.add_field_method_get("user_id", |_, this| {
|
||||||
Ok(this.0.user_id().map(std::string::ToString::to_string))
|
Ok(this.0.user_id().map(ToString::to_string))
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,6 +122,7 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
} else {
|
} else {
|
||||||
Account::offline(&username)
|
Account::offline(&username)
|
||||||
};
|
};
|
||||||
|
|
||||||
let Err(error) = ClientBuilder::new_without_plugins()
|
let Err(error) = ClientBuilder::new_without_plugins()
|
||||||
.add_plugins(DefaultBotPlugins)
|
.add_plugins(DefaultBotPlugins)
|
||||||
.add_plugins(HaxPlugin)
|
.add_plugins(HaxPlugin)
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
use std::time::Duration;
|
|
||||||
|
|
||||||
use anyhow::{Context, Result};
|
use anyhow::{Context, Result};
|
||||||
use futures::StreamExt;
|
use futures::StreamExt;
|
||||||
use log::{error, info, warn};
|
use log::{error, info, warn};
|
||||||
@ -17,6 +15,7 @@ use matrix_sdk::{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
use std::time::Duration;
|
||||||
use tokio::time::sleep;
|
use tokio::time::sleep;
|
||||||
|
|
||||||
async fn confirm_emojis(sas: SasVerification, emoji: [Emoji; 7]) {
|
async fn confirm_emojis(sas: SasVerification, emoji: [Emoji; 7]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user