fix utils.rs: reuqire Sync

This commit is contained in:
Akulij 2025-06-02 16:45:59 +05:00
parent 3d293501f2
commit 632e77762e

View File

@ -50,7 +50,7 @@ pub async fn create_callback_button<C, D>(
) -> BotResult<InlineKeyboardButton> ) -> BotResult<InlineKeyboardButton>
where where
C: Serialize + for<'a> Deserialize<'a> + Send + Sync, C: Serialize + for<'a> Deserialize<'a> + Send + Sync,
D: CallDB + Send, D: CallDB + Send + Sync,
{ {
let text = db let text = db
.get_literal_value(literal) .get_literal_value(literal)