diff options
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()) }); |