Skip to content

Commit 57087d0

Browse files
authored
fix rust lints (#1469)
# Description @swift-nav/algint-team Fixes a new rust lint in a test # API compatibility Does this change introduce a API compatibility risk? None ## API compatibility plan If the above is "Yes", please detail the compatibility (or migration) plan: N/A
1 parent 9daf121 commit 57087d0

File tree

1 file changed

+1
-2
lines changed
  • rust/sbp2json/tests/common

1 file changed

+1
-2
lines changed

rust/sbp2json/tests/common/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ pub struct DeleteTestOutput {
7676

7777
impl Drop for DeleteTestOutput {
7878
fn drop(&mut self) {
79-
let skip_delete =
80-
env::var("RUST_SKIP_DELETE_TEST_DATA").map_or(false, |var| !var.is_empty());
79+
let skip_delete = env::var("RUST_SKIP_DELETE_TEST_DATA").is_ok_and(|var| !var.is_empty());
8180
if skip_delete {
8281
return;
8382
}

0 commit comments

Comments
 (0)