Skip to content

Commit

Permalink
Make Clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Jul 10, 2023
1 parent 48ff310 commit d280737
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frameworks/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ where
writeln!(file, " => {{")?;
match fields {
Fields::Named(fields) => {
for field in fields.named.iter() {
for field in &fields.named {
writeln!(
file,
" {}.visit(visitor)?;",
Expand Down Expand Up @@ -234,7 +234,7 @@ where

match fields {
Fields::Named(fields) => {
for field in fields.named.iter() {
for field in &fields.named {
writeln!(
file,
" {}.{}.visit(visitor)?;",
Expand Down
2 changes: 1 addition & 1 deletion frameworks/src/foundry/visitor/visit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ where
where
V: Visitor<'ast> + ?Sized,
{
for item in self.iter() {
for item in self {
item.visit(v)?;
}
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion necessist/tests/trycmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fn trycmd() {

#[test]
fn check_stdout() {
let re = Regex::new(r#"\b[0-9]+\.[0-9]+s\b"#).unwrap();
let re = Regex::new(r"\b[0-9]+\.[0-9]+s\b").unwrap();

let necessist_db_absent = read_dir("tests/necessist_db_absent").unwrap();
let necessist_db_present = read_dir("tests/necessist_db_present").unwrap();
Expand Down

0 comments on commit d280737

Please sign in to comment.