Updated dependencies
This commit is contained in:
@ -55,7 +55,7 @@ impl std::str::FromStr for CallbackCommand {
|
||||
"delete_message" => return Ok(Self::DeleteMessage),
|
||||
"get_menu" => return Ok(Self::GetMenu),
|
||||
_ => (),
|
||||
};
|
||||
}
|
||||
|
||||
let mut substrings = s.split(' ');
|
||||
let (Some(command), Some(param), None) =
|
||||
|
@ -48,7 +48,7 @@ pub async fn delete(
|
||||
} else {
|
||||
let msg = bot.send_message(ids.0, text).await?;
|
||||
ids = MessageIds::from(&msg);
|
||||
};
|
||||
}
|
||||
|
||||
bot.answer_callback_query(q.id).await?;
|
||||
|
||||
|
@ -40,7 +40,7 @@ async fn notify_about_no_user_info(
|
||||
.alter_message(&bot, text, None, None)
|
||||
.await?;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
use crate::prelude::*;
|
||||
|
||||
#[expect(clippy::unused_async)]
|
||||
async fn check_login(
|
||||
_: &Message,
|
||||
_: &Pool,
|
||||
|
@ -1,5 +1,5 @@
|
||||
use crate::{
|
||||
cryptography::passwords::{check_master_pass, PasswordValidity},
|
||||
cryptography::passwords::{PasswordValidity, check_master_pass},
|
||||
prelude::*,
|
||||
};
|
||||
use std::fmt::Write as _;
|
||||
@ -38,6 +38,7 @@ fn process_validity(validity: PasswordValidity, locale: LocaleRef) -> Result<(),
|
||||
}
|
||||
|
||||
/// Checks that the account with that name exists
|
||||
#[expect(clippy::unused_async)]
|
||||
async fn check_new_master_pass(
|
||||
_: &Message,
|
||||
_: &Pool,
|
||||
|
@ -1,5 +1,6 @@
|
||||
use crate::prelude::*;
|
||||
|
||||
#[expect(clippy::unused_async)]
|
||||
async fn check_password(
|
||||
_: &Message,
|
||||
_: &Pool,
|
||||
|
@ -36,7 +36,7 @@ impl MessageIds {
|
||||
Ok(_) | Err(RequestError::Api(ApiError::MessageNotModified)) => return Ok(()),
|
||||
Err(RequestError::Api(_)) => (),
|
||||
Err(err) => return Err(err),
|
||||
};
|
||||
}
|
||||
|
||||
let mut send_request = bot.send_message(self.0, mem::take(&mut edit_request.text));
|
||||
let payload = send_request.payload_mut();
|
||||
|
Reference in New Issue
Block a user