Skip to content

Commit

Permalink
Remove instances of allow(clippy:all).
Browse files Browse the repository at this point in the history
These are no longer needed.
  • Loading branch information
waywardmonkeys committed Oct 15, 2023
1 parent dc9f12f commit 009bc7c
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 21 deletions.
3 changes: 0 additions & 3 deletions plot/src/axis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,6 @@ where
}

impl<'a> Script for (Axis, &'a Properties) {
// Allow clippy::format_push_string even with older versions of rust (<1.62) which
// don't have it defined.
#[allow(clippy::all)]
fn script(&self) -> String {
let &(axis, properties) = self;
let axis_ = axis.display();
Expand Down
3 changes: 0 additions & 3 deletions plot/src/candlestick.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ impl Default for Properties {
}

impl Script for Properties {
// Allow clippy::format_push_string even with older versions of rust (<1.62) which
// don't have it defined.
#[allow(clippy::all)]
fn script(&self) -> String {
let mut script = String::from("with candlesticks ");

Expand Down
3 changes: 0 additions & 3 deletions plot/src/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ impl CurveDefault<Style> for Properties {
}

impl Script for Properties {
// Allow clippy::format_push_string even with older versions of rust (<1.62) which
// don't have it defined.
#[allow(clippy::all)]
fn script(&self) -> String {
let mut script = if let Some(axes) = self.axes {
format!("axes {} ", axes.display())
Expand Down
3 changes: 0 additions & 3 deletions plot/src/errorbar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ impl ErrorBarDefault<Style> for Properties {
}

impl Script for Properties {
// Allow clippy::format_push_string even with older versions of rust (<1.62) which
// don't have it defined.
#[allow(clippy::all)]
fn script(&self) -> String {
let mut script = format!("with {} ", self.style.display());

Expand Down
3 changes: 0 additions & 3 deletions plot/src/filledcurve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ impl Default for Properties {
}

impl Script for Properties {
// Allow clippy::format_push_string even with older versions of rust (<1.62) which
// don't have it defined.
#[allow(clippy::all)]
fn script(&self) -> String {
let mut script = if let Some(axes) = self.axes {
format!("axes {} ", axes.display())
Expand Down
3 changes: 0 additions & 3 deletions plot/src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ impl Properties {
}

impl Script for Properties {
// Allow clippy::format_push_string even with older versions of rust (<1.62) which
// don't have it defined.
#[allow(clippy::all)]
fn script(&self) -> String {
let mut script = if self.hidden {
return String::from("set key off\n");
Expand Down
3 changes: 0 additions & 3 deletions plot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,6 @@ impl Figure {
}
}

// Allow clippy::format_push_string even with older versions of rust (<1.62) which
// don't have it defined.
#[allow(clippy::all)]
fn script(&self) -> Vec<u8> {
let mut s = String::new();

Expand Down

0 comments on commit 009bc7c

Please sign in to comment.