update follow clippy

This commit is contained in:
2020-01-08 03:51:48 +08:00
parent a0a95e0f8f
commit d75d8b58c4

View File

@@ -321,9 +321,9 @@ impl <'a> DingTalk<'a> {
} }
/// Create `DingTalk` from url, for outgoing robot /// Create `DingTalk` from url, for outgoing robot
pub fn from_url(url: &'a str) -> Self { pub fn from_url(direct_url: &'a str) -> Self {
DingTalk { DingTalk {
direct_url: url, direct_url,
..Default::default() ..Default::default()
} }
} }