diff options
| author | Austin Hellyer <[email protected]> | 2016-11-10 17:09:24 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-10 17:09:24 -0800 |
| commit | b0e1a70418a629eb1cc71339c9ca6dc2ae0ec2a1 (patch) | |
| tree | dbea47d3cfcf983ba95411fd2e8af35f141cd807 /src/ext/framework | |
| parent | Implementing missing HTTP methods (diff) | |
| download | serenity-b0e1a70418a629eb1cc71339c9ca6dc2ae0ec2a1.tar.xz serenity-b0e1a70418a629eb1cc71339c9ca6dc2ae0ec2a1.zip | |
Fix some clippy lints
Diffstat (limited to 'src/ext/framework')
| -rw-r--r-- | src/ext/framework/mod.rs | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/ext/framework/mod.rs b/src/ext/framework/mod.rs index 80844c3..c5e68ec 100644 --- a/src/ext/framework/mod.rs +++ b/src/ext/framework/mod.rs @@ -40,8 +40,8 @@ impl Framework { pub fn dispatch(&mut self, context: Context, message: Message) { let res = command::positions(&message.content, &self.configuration); - let (positions, kind) = match res { - Some((positions, kind)) => (positions, kind), + let positions = match res { + Some((positions, _kind)) => positions, None => return, }; @@ -114,18 +114,4 @@ impl Framework { self } - - fn find_mention_end(&self, content: &str) -> Option<usize> { - if let Some(ref mentions) = self.configuration.on_mention { - for mention in mentions { - if !content.starts_with(&mention[..]) { - continue; - } - - return Some(mention.len() + 1); - } - } - - None - } } |