diff options
| author | acdenisSK <[email protected]> | 2017-10-01 21:59:33 +0200 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-10-09 15:46:37 -0700 |
| commit | 0ce8be869eeb2eb700e22f71b2e00872cc96a500 (patch) | |
| tree | 03dd981bc04ba8475333d057705820c3320e3a97 /examples/07_sample_bot_structure | |
| parent | Have `ConnectionStage` derive Copy (diff) | |
| download | serenity-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.rs | 2 |
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()) }); |