Refactor embed module functions and apply clippy lints with rustfmt #19

Manually merged
froge merged 3 commits from refactor into master 2024-07-10 11:38:53 +00:00
Showing only changes of commit 2dad7aa33a - Show all commits

View file

@ -125,7 +125,7 @@ pub async fn embed_handler(event: OriginalSyncRoomMessageEvent, room: Room, clie
for url in urls { for url in urls {
match reqwest_client.get(url).send().await { match reqwest_client.get(url).send().await {
Err(e) => warn!("Failed to fetch metadata for URL'{}' with error: '{:?}'", &url, e), Err(e) => warn!("Failed to fetch metadata for URL '{}' with error: '{:?}'", &url, e),
Ok(req) => { Ok(req) => {
match req.text().await { match req.text().await {
Err(e) => warn!("Failed to parse HTML for URL '{}' with error: '{:?}'", &url, e), Err(e) => warn!("Failed to parse HTML for URL '{}' with error: '{:?}'", &url, e),