diff options
| author | Kaidan <[email protected]> | 2017-06-28 18:47:06 +1000 |
|---|---|---|
| committer | alex <[email protected]> | 2017-06-28 10:47:06 +0200 |
| commit | e1912c22fc806f97d9eb9025aa2432e785003f3b (patch) | |
| tree | eabb3f99ccaf2591aa9df8686587177e687c2bf2 | |
| parent | Add support for sending attachments in embeds (#95) (diff) | |
| download | serenity-e1912c22fc806f97d9eb9025aa2432e785003f3b.tar.xz serenity-e1912c22fc806f97d9eb9025aa2432e785003f3b.zip | |
Fixed clippy warnings (#118)
| -rw-r--r-- | src/lib.rs | 2 | ||||
| -rw-r--r-- | src/model/guild/member.rs | 2 |
2 files changed, 1 insertions, 3 deletions
@@ -89,12 +89,10 @@ #[macro_use] extern crate bitflags; -#[allow(unused_imports)] #[macro_use] extern crate log; #[macro_use] extern crate serde_derive; -#[allow(unused_imports)] #[macro_use] extern crate serde_json; diff --git a/src/model/guild/member.rs b/src/model/guild/member.rs index 8ef82a6..444d4af 100644 --- a/src/model/guild/member.rs +++ b/src/model/guild/member.rs @@ -162,7 +162,7 @@ impl Member { /// [`guild_id`]: #structfield.guild_id #[deprecated(since="0.2.1", note="Use the `guild_id` structfield instead.")] pub fn find_guild(&self) -> Result<GuildId> { - return Ok(self.guild_id); + Ok(self.guild_id) } /// Kick the member from the guild. |