aboutsummaryrefslogtreecommitdiff
path: root/src/framework/mod.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-08-19 02:05:11 +0200
committeracdenisSK <[email protected]>2017-08-19 02:05:39 +0200
commit3e97e77ce8878c65cf3051c053d32af8e4888957 (patch)
tree5c0d90317ec87b1e4740b78e41a78ba9e3f2b924 /src/framework/mod.rs
parentFix a failing test (#140) (diff)
downloadserenity-3e97e77ce8878c65cf3051c053d32af8e4888957.tar.xz
serenity-3e97e77ce8878c65cf3051c053d32af8e4888957.zip
Clippy
Diffstat (limited to 'src/framework/mod.rs')
-rw-r--r--src/framework/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/framework/mod.rs b/src/framework/mod.rs
index 5c676ec..98f7d40 100644
--- a/src/framework/mod.rs
+++ b/src/framework/mod.rs
@@ -850,7 +850,7 @@ impl BuiltinFramework {
/// ```
///
pub fn before<F>(mut self, f: F) -> Self
- where F: Fn(&mut Context, &Message, &String) -> bool + 'static {
+ where F: Fn(&mut Context, &Message, &str) -> bool + 'static {
self.before = Some(Arc::new(f));
self
@@ -881,7 +881,7 @@ impl BuiltinFramework {
/// }));
/// ```
pub fn after<F>(mut self, f: F) -> Self
- where F: Fn(&mut Context, &Message, &String, Result<(), String>) + 'static {
+ where F: Fn(&mut Context, &Message, &str, Result<(), String>) + 'static {
self.after = Some(Arc::new(f));
self