chore(examples): Upgrade to Rust edition 2024
This commit is contained in:
committed by
Damir Jelić
parent
06732ca71a
commit
4a1249fa96
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "example-command-bot"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
publish = false
|
||||
license = "Apache-2.0"
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
use std::{env, process::exit};
|
||||
|
||||
use matrix_sdk::{
|
||||
Client, Room, RoomState,
|
||||
config::SyncSettings,
|
||||
ruma::events::room::message::{
|
||||
MessageType, OriginalSyncRoomMessageEvent, RoomMessageEventContent,
|
||||
},
|
||||
Client, Room, RoomState,
|
||||
};
|
||||
|
||||
async fn on_room_message(event: OriginalSyncRoomMessageEvent, room: Room) {
|
||||
|
||||
Reference in New Issue
Block a user