aboutsummaryrefslogtreecommitdiff
path: root/examples/07_sample_bot_structure
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-10-01 21:59:33 +0200
committerZeyla Hellyer <[email protected]>2017-10-09 15:46:37 -0700
commit0ce8be869eeb2eb700e22f71b2e00872cc96a500 (patch)
tree03dd981bc04ba8475333d057705820c3320e3a97 /examples/07_sample_bot_structure
parentHave `ConnectionStage` derive Copy (diff)
downloadserenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.tar.xz
serenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.zip
`to_owned` -> `to_string`
Diffstat (limited to 'examples/07_sample_bot_structure')
-rw-r--r--examples/07_sample_bot_structure/src/commands/meta.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/07_sample_bot_structure/src/commands/meta.rs b/examples/07_sample_bot_structure/src/commands/meta.rs
index 4b43cb8..18ee48d 100644
--- a/examples/07_sample_bot_structure/src/commands/meta.rs
+++ b/examples/07_sample_bot_structure/src/commands/meta.rs
@@ -1,7 +1,7 @@
command!(latency(ctx, msg) {
let latency = ctx.shard.lock()
.latency()
- .map_or_else(|| "N/A".to_owned(), |s| {
+ .map_or_else(|| "N/A".to_string(), |s| {
format!("{}.{}s", s.as_secs(), s.subsec_nanos())
});