diff --git a/rustfmt.toml b/rustfmt.toml
new file mode 100644
index 0000000..db2c043
--- /dev/null
+++ b/rustfmt.toml
@@ -0,0 +1,5 @@
+# unstable_features = true
+# format_strings = true
+# imports_granularity = "Crate"
+# merge_imports = true
+max_width = 100
\ No newline at end of file
diff --git a/src/functions/groups.rs b/src/functions/groups.rs
index bcc8969..54eff8a 100644
--- a/src/functions/groups.rs
+++ b/src/functions/groups.rs
@@ -5,7 +5,7 @@ use teloxide::{
types::{InlineKeyboardMarkup, ParseMode},
};
-static TEXT: &str = r#"Telegramdagi Rust Hamjamiyatlari yoki Guruhlari:\nAgar o'zingizni guruhingizni qo'shmoqchi bo'lsangiz, bizni community.json ni yangilang!"#;
+static TEXT: &str = "Telegramdagi Rust Hamjamiyatlari yoki Guruhlari:\nAgar o'zingizni guruhingizni qo'shmoqchi bo'lsangiz, bizni community.json ni yangilang!";
pub fn keyboard() -> InlineKeyboardMarkup {
let mut keyboard = Keyboard::new();
@@ -30,11 +30,10 @@ pub async fn callback(bot: &Bot, q: &CallbackQuery, args: &Vec<&str>) -> Respons
.reply_markup(keyboard())
.await?;
} else if let Some(id) = q.inline_message_id.clone() {
- bot.edit_message_text_inline(id, "Oopsie, something went wrong...").await?;
+ bot.edit_message_text_inline(id, "Oopsie, something went wrong...")
+ .await?;
}
}
-
-
Ok(())
-}
\ No newline at end of file
+}
diff --git a/src/functions/mod.rs b/src/functions/mod.rs
index 98fe7f6..1c12ce3 100644
--- a/src/functions/mod.rs
+++ b/src/functions/mod.rs
@@ -1,9 +1,9 @@
pub mod about;
+pub mod groups;
pub mod help;
pub mod inline;
pub mod rules;
pub mod start;
-pub mod groups;
pub use inline::inline;
@@ -40,7 +40,7 @@ pub async fn callback(bot: Bot, q: CallbackQuery) -> Result<(), Box crate::functions::groups::callback(&bot, &q, &args).await,
- _ => Ok(())
+ _ => Ok(()),
};
}