瀏覽代碼

[Build] Deps versions bump

Slava Barinov 2 年之前
父節點
當前提交
ebdb18b5ce
共有 3 個文件被更改,包括 183 次插入212 次删除
  1. 180 206
      Cargo.lock
  2. 1 1
      src/main.rs
  3. 2 5
      src/telegram.rs

File diff suppressed because it is too large
+ 180 - 206
Cargo.lock


+ 1 - 1
src/main.rs

@@ -68,7 +68,7 @@ fn perekrestok_filter(line: &str) -> &str {
     numfilter(
         line.trim_start()
             .trim_start_matches(char::is_numeric)
-            .trim_start_matches(&['*', ':']),
+            .trim_start_matches(&['*', ':', ' ']),
     )
 }
 

+ 2 - 5
src/telegram.rs

@@ -280,11 +280,8 @@ async fn handle_json(
         bot.send_message(msg.chat.id, format!("New file received!!!111 {}", file_id))
             .await?;
     } else {
-        bot.send_message(
-            msg.chat.id,
-            format!("Not supported file sent"),
-        )
-        .await?;
+        bot.send_message(msg.chat.id, format!("Not supported file sent"))
+            .await?;
     }
 
     if let Ok(newfile) = download_file(&bot, &file_id).await {

Some files were not shown because too many files changed in this diff