Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Jul 16, 2024
1 parent 8205810 commit 77c8eb6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl CodegenRunner {
if source_text.starts_with("// @flow") {
return;
}
let source_text2 = self.codegen(path, &source_text, *source_type);
let source_text2 = self.codegen(path, source_text, *source_type);
// Idempotency test
let source_text3 = self.codegen(path, &source_text2, *source_type);

Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::new_without_default)]

pub mod codegen;
pub mod isolated_declarations;
pub mod transform;
Expand Down
2 changes: 1 addition & 1 deletion src/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl TransformRunner {

fn test(&self, source: &Source) {
let Source { path, source_type, source_text } = source;
let source_text2 = self.transform(path, &source_text, *source_type);
let source_text2 = self.transform(path, source_text, *source_type);

// Idempotency test
let source_text3 = self.transform(path, &source_text2, *source_type);
Expand Down

0 comments on commit 77c8eb6

Please sign in to comment.