style: minor changes

This commit is contained in:
Ryan 2025-03-15 16:37:16 -04:00
parent ce98afb11d
commit fd94ea3304
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3
2 changed files with 2 additions and 3 deletions
src
lua/matrix
matrix

@ -11,7 +11,7 @@ impl UserData for Client {
Ok(this.0.rooms().into_iter().map(Room).collect::<Vec<_>>())
});
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))
});
}

@ -1,5 +1,3 @@
use std::time::Duration;
use anyhow::{Context, Result};
use futures::StreamExt;
use log::{error, info, warn};
@ -17,6 +15,7 @@ use matrix_sdk::{
},
},
};
use std::time::Duration;
use tokio::time::sleep;
async fn confirm_emojis(sas: SasVerification, emoji: [Emoji; 7]) {