Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tachikoma"
version = "0.3.1"
version = "0.3.2"
edition = "2024"
repository = "https://github.com/udv-group/tachikoma"
default-run = "tachikoma"
Expand Down
3 changes: 1 addition & 2 deletions src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ impl TryFrom<String> for Environment {
"local" => Ok(Environment::Local),
"production" => Ok(Environment::Production),
other => Err(format!(
"Unsupported environment type: {}. Use `local` or `production`",
other
"Unsupported environment type: {other}. Use `local` or `production`"
)),
}
}
Expand Down
5 changes: 1 addition & 4 deletions src/ldap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ impl UsersInfo {
let rs = self
.do_authorized_ldap_request(
&self.users_query,
&format!(
"(|(mail={})(sAMAccountName={}))",
login_or_mail, login_or_mail
),
&format!("(|(mail={login_or_mail})(sAMAccountName={login_or_mail}))"),
)
.await?;

Expand Down
2 changes: 1 addition & 1 deletion src/logic/message_senders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl GetMessageSender for TgMessages {
.with_context(|| format!("User ({:?}) tg_handle is None", user.id))?;
let chat_id = tg_handle
.parse::<i64>()
.with_context(|| format!("Failed parse chat_id from {}", tg_handle))?;
.with_context(|| format!("Failed parse chat_id from {tg_handle}"))?;

Ok(Box::new(TgUser {
bot: self.bot.clone(),
Expand Down
4 changes: 2 additions & 2 deletions src/logic/notifications.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ where
let user = tx
.get_user_by_id(&user_id)
.await
.with_context(|| format!("Failed to read user {:?}", user_id))?
.with_context(|| format!("User ({:?}) doesn't exist", user_id))?;
.with_context(|| format!("Failed to read user {user_id:?}"))?
.with_context(|| format!("User ({user_id:?}) doesn't exist"))?;

let msg_sender = self.msg_sender.get_message_sender(&user)?;

Expand Down
Loading