From e65ae5933d1b367f5add2c062047c49111071e0f Mon Sep 17 00:00:00 2001 From: Takeru Ohta Date: Tue, 16 Aug 2022 19:36:35 +0900 Subject: [PATCH] Fix clippy warnings --- kurobako_problems/src/sigopt.rs | 1 + src/markdown.rs | 2 +- src/plot/curve.rs | 1 + src/plot/pareto_front.rs | 1 + src/plot/slice.rs | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/kurobako_problems/src/sigopt.rs b/kurobako_problems/src/sigopt.rs index 40c9022..ce6064a 100644 --- a/kurobako_problems/src/sigopt.rs +++ b/kurobako_problems/src/sigopt.rs @@ -6,6 +6,7 @@ //! If you want to use an unimplemented function, please create an issue or PR. //! //! [sigopt/evalset]: https://github.com/sigopt/evalset +#![allow(clippy::format_push_string)] use self::functions::TestFunction; use kurobako_core::domain; use kurobako_core::problem::{ diff --git a/src/markdown.rs b/src/markdown.rs index 9646868..4d73cf3 100644 --- a/src/markdown.rs +++ b/src/markdown.rs @@ -29,7 +29,7 @@ impl<'a, W: Write> MarkdownWriter<'a, W> { } pub fn inner_mut(&mut self) -> &mut W { - &mut self.writer + self.writer } pub fn newline(&mut self) -> Result<()> { diff --git a/src/plot/curve.rs b/src/plot/curve.rs index 9f89d00..9f158fd 100644 --- a/src/plot/curve.rs +++ b/src/plot/curve.rs @@ -1,4 +1,5 @@ //! `kurobako plot curve` command. +#![allow(clippy::format_push_string)] use super::{execute_gnuplot, normalize_filename}; use crate::record::{ProblemRecord, StudyRecord}; use indicatif::{ProgressBar, ProgressStyle}; diff --git a/src/plot/pareto_front.rs b/src/plot/pareto_front.rs index 32a8418..bacd04c 100644 --- a/src/plot/pareto_front.rs +++ b/src/plot/pareto_front.rs @@ -1,4 +1,5 @@ //! `kurobako plot pareto-front` command. +#![allow(clippy::format_push_string)] use super::{execute_gnuplot, normalize_filename}; use crate::record::StudyRecord; use indicatif::{ProgressBar, ProgressStyle}; diff --git a/src/plot/slice.rs b/src/plot/slice.rs index d5e544c..1738663 100644 --- a/src/plot/slice.rs +++ b/src/plot/slice.rs @@ -1,4 +1,5 @@ //! `kurobako plot slice` command. +#![allow(clippy::format_push_string)] use super::{execute_gnuplot, normalize_filename}; use crate::record::StudyRecord; use indicatif::{ProgressBar, ProgressStyle};