From 0ce8be869eeb2eb700e22f71b2e00872cc96a500 Mon Sep 17 00:00:00 2001 From: acdenisSK Date: Sun, 1 Oct 2017 21:59:33 +0200 Subject: `to_owned` -> `to_string` --- examples/07_sample_bot_structure/src/commands/meta.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/07_sample_bot_structure/src') 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()) }); -- cgit v1.2.3