aboutsummaryrefslogtreecommitdiff
path: root/src/http/mod.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-29 22:53:50 +0200
committeracdenisSK <[email protected]>2017-07-29 22:53:50 +0200
commit0d6965f647396c84b2570e92b63244c3afaea863 (patch)
tree497cb26d44af5deca9afbe5ef9395d27aa3c9a8d /src/http/mod.rs
parentFix imports (diff)
downloadserenity-0d6965f647396c84b2570e92b63244c3afaea863.tar.xz
serenity-0d6965f647396c84b2570e92b63244c3afaea863.zip
Remove a few clones
Diffstat (limited to 'src/http/mod.rs')
-rw-r--r--src/http/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/mod.rs b/src/http/mod.rs
index 0efea78..7692961 100644
--- a/src/http/mod.rs
+++ b/src/http/mod.rs
@@ -1658,7 +1658,7 @@ pub fn send_files<'a, T>(channel_id: u64, files: Vec<T>, map: JsonMap) -> Result
.set(header::UserAgent(constants::USER_AGENT.to_owned()));
let mut request = Multipart::from_request(request)?;
- let mut file_num = String::from("0".to_owned());
+ let mut file_num = "0".to_owned();
for file in files {
match file.into() {