From c19a7ff34f162ee7162de0b11277de42415991ff Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Thu, 10 Mar 2022 02:23:00 -0500 Subject: [PATCH] remove unnecessary to_string in docs (#1345) --- egui/src/widgets/plot/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egui/src/widgets/plot/mod.rs b/egui/src/widgets/plot/mod.rs index 1668d190..c0254c12 100644 --- a/egui/src/widgets/plot/mod.rs +++ b/egui/src/widgets/plot/mod.rs @@ -328,7 +328,7 @@ impl Plot { /// Plot::new("my_plot").view_aspect(2.0) /// .label_formatter(|name, value| { /// if !name.is_empty() { - /// format!("{}: {:.*}%", name, 1, value.y).to_string() + /// format!("{}: {:.*}%", name, 1, value.y) /// } else { /// "".to_string() /// }