Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
loewenheim committed Jan 17, 2023
1 parent 5866fb6 commit fb65172
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions crates/symbolicator-service/tests/integration/e2e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ fn get_files(path: impl AsRef<Path>) -> Vec<(String, u64)> {
}

/// Tests caching side-effects, like cache files written and hits to the symbol source.
#[allow(clippy::if_same_then_else)]
#[tokio::test]
async fn test_basic_windows() {
let (modules, stacktraces) = request_fixture();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async fn test_download_errors() {
};

// NOTE: we run requests twice to make sure that round-trips through the cache give us the same results.
for i in 0..2 {
for _i in 0..2 {
// NOTE: we try this 3 times on error
let source = hitcounter.source("rejected", "/respond_statuscode/500/");
let request = get_symbolication_request(vec![source]);
Expand Down Expand Up @@ -100,11 +100,7 @@ async fn test_download_errors() {
// FIXME: We are currently serializing `CacheError` in "legacy" mode that does
// not support details
// FIXME: However, adding an in-memory cache means we still get the proper values
details: if i == 0 {
"403 Forbidden".into()
} else {
"403 Forbidden".into()
}
details: "403 Forbidden".into()
}
)
);
Expand Down

0 comments on commit fb65172

Please sign in to comment.