aboutsummaryrefslogtreecommitdiff
path: root/src/client/mod.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-10-01 21:59:33 +0200
committeracdenisSK <[email protected]>2017-10-01 22:14:23 +0200
commit1bf4d9cb9823dca8c4bb77147c66eac2d53f609f (patch)
treeba14ca714fa7bc1e6ba1d26f10e7c170bdf10ffa /src/client/mod.rs
parentHave `ConnectionStage` derive Copy (diff)
downloadserenity-1bf4d9cb9823dca8c4bb77147c66eac2d53f609f.tar.xz
serenity-1bf4d9cb9823dca8c4bb77147c66eac2d53f609f.zip
`to_owned` -> `to_string`
Diffstat (limited to 'src/client/mod.rs')
-rw-r--r--src/client/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs
index f497f2c..d1de13e 100644
--- a/src/client/mod.rs
+++ b/src/client/mod.rs
@@ -279,7 +279,7 @@ impl<H: EventHandler + Send + Sync + 'static> Client<H> {
/// ```
pub fn new(token: &str, handler: H) -> Self {
let token = if token.starts_with("Bot ") {
- token.to_owned()
+ token.to_string()
} else {
format!("Bot {}", token)
};