Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats committed Sep 27, 2023
1 parent c9a1355 commit ed97465
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cts_runner/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ mod native {
fn op_write_file_sync(#[string] path: &str, #[buffer] buf: &[u8]) -> Result<(), AnyError> {
let path = std::path::Path::new(path);
let mut file = std::fs::File::create(path)?;
file.write_all(&buf)?;
file.write_all(buf)?;
Ok(())
}

Expand Down
2 changes: 1 addition & 1 deletion examples/timestamp-queries/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl Queries {
encoder.resolve_query_set(
&self.set,
// TODO(https://github.com/gfx-rs/wgpu/issues/3993): Musn't be larger than the number valid queries in the set.
0..self.next_unused_query as u32,
0..self.next_unused_query,
&self.resolve_buffer,
0,
);
Expand Down

0 comments on commit ed97465

Please sign in to comment.