Skip to content

Commit

Permalink
[meta] clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshowers committed Oct 2, 2023
1 parent 5821e6e commit aed8524
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion guppy/src/graph/feature/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod query;
mod resolve;
mod weak;

pub(self) use build::*;
use build::*;
pub use cycles::*;
pub use feature_list::FeatureList;
pub use graph_impl::*;
Expand Down
4 changes: 2 additions & 2 deletions guppy/src/petgraph_support/dot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ impl<'a, 'b> Write for DotWrite<'a, 'b> {
match c {
'"' => self.f.write_str(r#"\""#),
// \l is for left-justified newlines (\n means center-justified newlines)
'\n' => self.f.write_str(r#"\l"#),
'\n' => self.f.write_str(r"\l"),
// Backslashes are only escaped if the config is set.
'\\' if self.escape_backslashes => self.f.write_str(r#"\\"#),
'\\' if self.escape_backslashes => self.f.write_str(r"\\"),
// Other escapes like backslashes are passed through.
c => self.f.write_char(c),
}
Expand Down
2 changes: 1 addition & 1 deletion guppy/src/unit_tests/dot_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn dot_fmt() {
// " is escaped.
let b = graph.add_node(r#"B1"B2"#);
// \ is escaped by DisplayVisitor but not by NoEscapeDisplayVisitor.
let c = graph.add_node(r#"C1\C2\\C3\lC4\nC5"#);
let c = graph.add_node(r"C1\C2\\C3\lC4\nC5");
// Newlines are converted into \l.
let d = graph.add_node("D1\nD2");
graph.add_edge(a, b, 100);
Expand Down
3 changes: 3 additions & 0 deletions internal-tools/fixture-manager/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// Copyright (c) The cargo-guppy Contributors
// SPDX-License-Identifier: MIT OR Apache-2.0

// This is fired by the arg_enum macro. We really need to upgrade to clap v4 at some point.
#![allow(clippy::useless_vec)]

pub mod context;
pub mod hakari_toml;
pub mod summaries;
Expand Down

0 comments on commit aed8524

Please sign in to comment.