apply some automatic clippy hints
This commit is contained in:
parent
c5ec153488
commit
d02f25fb32
4 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
use examples_shared;
|
||||
|
||||
use imgui::{im_str, Condition, Window};
|
||||
use implot::Context;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ pub struct ClipboardSupport(ClipboardContext);
|
|||
pub fn init() -> Option<ClipboardSupport> {
|
||||
ClipboardContext::new()
|
||||
.ok()
|
||||
.map(|ctx| ClipboardSupport(ctx))
|
||||
.map(ClipboardSupport)
|
||||
}
|
||||
|
||||
impl ClipboardBackend for ClipboardSupport {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use examples_shared;
|
||||
|
||||
use imgui::{im_str, Condition, Window};
|
||||
use implot::Context;
|
||||
|
||||
|
|
|
@ -286,7 +286,7 @@ impl PlotHeatmap {
|
|||
|
||||
/// Specify the label format for hovered data points.. `None` means no label is shown.
|
||||
pub fn with_label_format(mut self, label_format: Option<&str>) -> Self {
|
||||
self.label_format = label_format.and_then(|x| Some(im_str!("{}", x)));
|
||||
self.label_format = label_format.map(|x| im_str!("{}", x));
|
||||
self
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue