diff options
| author | acdenisSK <[email protected]> | 2017-10-01 21:59:33 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-10-01 22:14:23 +0200 |
| commit | 1bf4d9cb9823dca8c4bb77147c66eac2d53f609f (patch) | |
| tree | ba14ca714fa7bc1e6ba1d26f10e7c170bdf10ffa /examples/07_sample_bot_structure/src | |
| parent | Have `ConnectionStage` derive Copy (diff) | |
| download | serenity-1bf4d9cb9823dca8c4bb77147c66eac2d53f609f.tar.xz serenity-1bf4d9cb9823dca8c4bb77147c66eac2d53f609f.zip | |
`to_owned` -> `to_string`
Diffstat (limited to 'examples/07_sample_bot_structure/src')
| -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()) }); |