Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
coder0xff committed Mar 6, 2023
1 parent cde2c13 commit a8b68a0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions frb_codegen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,10 @@ mod tests {
// VS Code runs in frb_codegen with "Run test" and flutter_rust_bridge with "Debug test" >_>
#[allow(dead_code)]
fn set_dir() {
match fs::metadata("frb_codegen") {
Ok(metadata) => {
if metadata.is_dir() {
std::env::set_current_dir("frb_codegen").unwrap();
}
},
_ => {}
if let Ok(metadata) = fs::metadata("frb_codegen") {
if metadata.is_dir() {
std::env::set_current_dir("frb_codegen").unwrap();
}
}
}

Expand Down

0 comments on commit a8b68a0

Please sign in to comment.