From a66368f3c2db81030076f2d93c544b0731699b26 Mon Sep 17 00:00:00 2001 From: itsusinn Date: Mon, 15 Nov 2021 16:27:56 +0800 Subject: [PATCH] chore: release 1.1.3 --- Cargo.toml | 2 +- src/bot.rs | 2 +- src/main.rs | 5 +++-- src/net.rs | 5 +++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1023111..f452657 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "telegram-message-source" -version = "1.1.2" +version = "1.1.3" authors = ["Itsusinn "] edition = "2018" diff --git a/src/bot.rs b/src/bot.rs index dd87a3e..308aad5 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -2,7 +2,7 @@ use std::{ops::Deref, sync::Arc}; use crate::config::CONFIG; use arcstr::ArcStr; -use mesagisto_client::{LateInit, cache::CACHE, net::NET, res::RES}; +use mesagisto_client::{cache::CACHE, net::NET, res::RES, LateInit}; use teloxide::{adaptors::AutoSend, prelude::Requester, types::File as TgFile, Bot}; #[derive(Singleton, Default)] diff --git a/src/main.rs b/src/main.rs index 5b3cebc..d00eb87 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,9 @@ #![allow(incomplete_features)] #![feature(backtrace, capture_disjoint_fields)] -use std::sync::Arc; use futures::FutureExt; use mesagisto_client::MesagistoConfig; +use std::sync::Arc; use teloxide::{prelude::*, Bot}; use bot::TG_BOT; @@ -75,7 +75,8 @@ async fn run() -> Result<(), anyhow::Error> { .boxed() }) .build() - .apply().await; + .apply() + .await; log::info!("Mesagisto-Bot is starting up"); log::info!("Mesagisto-Bot正在启动"); diff --git a/src/net.rs b/src/net.rs index b4668f0..ea8135b 100644 --- a/src/net.rs +++ b/src/net.rs @@ -6,8 +6,9 @@ pub fn client_from_config() -> reqwest::Client { use crate::config::CONFIG; let builder = default_reqwest_settings().use_rustls_tls(); if CONFIG.proxy.enable { - builder - .proxy(reqwest::Proxy::all(CONFIG.proxy.address.as_str()).expect("reqwest::Proxy creation failed")) + builder.proxy( + reqwest::Proxy::all(CONFIG.proxy.address.as_str()).expect("reqwest::Proxy creation failed"), + ) } else { builder }