Skip to content

Commit

Permalink
fix new clippy lints (#5160)
Browse files Browse the repository at this point in the history
# Objective

- Nightly clippy lints should be fixed before they get stable and break CI
  
## Solution

- fix new clippy lints
- ignore `significant_drop_in_scrutinee` since it isn't relevant in our loop rust-lang/rust-clippy#8987
```rust
for line in io::stdin().lines() {
    ...
}
```

Co-authored-by: Jakob Hellermann <hellermann@sipgate.de>
  • Loading branch information
jakobhellermann and jakobhellermann committed Jul 1, 2022
1 parent 25903f7 commit e8a1c71
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1027,8 +1027,7 @@ async fn load_buffers(
Err(()) => {
// TODO: Remove this and add dep
let buffer_path = asset_path.parent().unwrap().join(uri);
let buffer_bytes = load_context.read_asset_bytes(buffer_path).await?;
buffer_bytes
load_context.read_asset_bytes(buffer_path).await?
}
};
buffer_data.push(buffer_bytes);
Expand Down

0 comments on commit e8a1c71

Please sign in to comment.