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/model/webhook.rs | |
| parent | Implementing missing HTTP methods (diff) | |
| download | serenity-b0e1a70418a629eb1cc71339c9ca6dc2ae0ec2a1.tar.xz serenity-b0e1a70418a629eb1cc71339c9ca6dc2ae0ec2a1.zip | |
Fix some clippy lints
Diffstat (limited to 'src/model/webhook.rs')
| -rw-r--r-- | src/model/webhook.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/webhook.rs b/src/model/webhook.rs index 70acd68..aaab2ab 100644 --- a/src/model/webhook.rs +++ b/src/model/webhook.rs @@ -71,7 +71,7 @@ impl Webhook { let mut map = ObjectBuilder::new(); if let Some(avatar) = avatar { - map = map.insert("avatar", if avatar.len() == 0 { + map = map.insert("avatar", if avatar.is_empty() { Value::Null } else { Value::String(avatar.to_owned()) |