Skip to content

Commit

Permalink
fix(rust-analyzer): nits that are showing up as errors (#2735)
Browse files Browse the repository at this point in the history
## Linked Issues/PRs
<!-- List of related issues/PRs -->
- none

## Description
<!-- List of detailed changes -->
`rust-analyzer` failing on my machine because of these errors

## Checklist
- [ ] Breaking changes are clearly marked as such in the PR description
and changelog
- [ ] New behavior is reflected in tests
- [ ] [The specification](https://github.com/FuelLabs/fuel-specs/)
matches the implemented behavior (link update PR if changes are needed)

### Before requesting review
- [ ] I have reviewed the code myself
- [ ] I have created follow-up issues caused by this PR and linked them
here

### After merging, notify other teams

[Add or remove entries as needed]

- [ ] [Rust SDK](https://github.com/FuelLabs/fuels-rs/)
- [ ] [Sway compiler](https://github.com/FuelLabs/sway/)
- [ ] [Platform
documentation](https://github.com/FuelLabs/devrel-requests/issues/new?assignees=&labels=new+request&projects=&template=NEW-REQUEST.yml&title=%5BRequest%5D%3A+)
(for out-of-organization contributors, the person merging the PR will do
this)
- [ ] Someone else?
  • Loading branch information
rymnc authored Feb 20, 2025
1 parent f3159db commit 2471df6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/fuel-core/src/graphql_api/worker_service/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async fn run__relayed_transaction_events_are_added_to_storage() {
// when
let mut task =
worker_task_with_block_importer_and_db(block_importer, database.clone());
task.run(&mut state_watcher).await;
let _ = task.run(&mut state_watcher).await;
tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;

// then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ mod tests {
// When
let result_with_new_version = result_with_new_version(new_version);
let _ = block_sender.send(result_with_new_version);
task.run(&mut StateWatcher::started()).await;
let _ = task.run(&mut StateWatcher::started()).await;

// Then
assert_eq!(
Expand Down
2 changes: 1 addition & 1 deletion crates/services/gas_price_service/src/v0/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ mod tests {
let initial_price = read_algo.next_gas_price();

// when
service.run(&mut watcher).await;
let _ = service.run(&mut watcher).await;
l2_block_sender.send(l2_block).await.unwrap();
service.shutdown().await.unwrap();

Expand Down
4 changes: 2 additions & 2 deletions crates/services/p2p/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1845,7 +1845,7 @@ pub mod tests {
watcher: &mut StateWatcher,
) -> (FuelPeerId, AppScore, String) {
loop {
task.run(watcher).await;
let _ = task.run(watcher).await;
if let Ok((peer_id, recv_report, service)) = report_receiver.try_recv() {
return (peer_id, recv_report, service);
}
Expand Down Expand Up @@ -1897,7 +1897,7 @@ pub mod tests {

for _ in 0..100 {
// When
task.run(&mut watcher).await;
let _ = task.run(&mut watcher).await;

// Then
block_processed_receiver
Expand Down

0 comments on commit 2471df6

Please sign in to comment.