Rename library functions from "main"

This commit is contained in:
George Kaklamanos 2023-06-30 18:02:40 +03:00
parent 6e6d4b227d
commit 983456997b
5 changed files with 8 additions and 8 deletions

View file

@ -30,7 +30,7 @@ async fn on_room_message(event: SyncMessageEvent<MessageEventContent>, room: Roo
}
#[tokio::main]
pub async fn main(username: String, password: String) -> Result<()> {
pub async fn matrix(username: String, password: String) -> Result<()> {
let user = UserId::try_from(username)?;
let client = Client::new_from_user_id(user.clone()).await?;