aboutsummaryrefslogtreecommitdiff
path: root/src/framework/configuration.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/framework/configuration.rs')
-rw-r--r--src/framework/configuration.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/framework/configuration.rs b/src/framework/configuration.rs
index 2854d90..bd64cba 100644
--- a/src/framework/configuration.rs
+++ b/src/framework/configuration.rs
@@ -269,8 +269,8 @@ impl Configuration {
if let Ok(current_user) = http::get_current_user() {
self.on_mention = Some(vec![
- format!("<@{}>", current_user.id), // Regular mention
- format!("<@!{}>", current_user.id), // Nickname mention
+ format!("<@{}>", current_user.id), // Regular mention
+ format!("<@!{}>", current_user.id) /* Nickname mention */,
]);
}
@@ -415,7 +415,9 @@ impl Configuration {
/// ```
pub fn delimiters(mut self, delimiters: Vec<&str>) -> Self {
self.delimiters.clear();
- self.delimiters.extend(delimiters.into_iter().map(|s| s.to_string()));
+ self.delimiters.extend(
+ delimiters.into_iter().map(|s| s.to_string()),
+ );
self
}