mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 05:18:19 +00:00
Remove warnings from build and satisfied clippy (#1288)
* Prefixed unused functions with underscore * Applied clippy lints * Fixed some warnings and removed some `allow` statements
This commit is contained in:
parent
054acd3cc9
commit
70fcb35444
33 changed files with 54 additions and 60 deletions
|
@ -132,7 +132,7 @@ impl gpu_executor::GpuExecutor for NewExecutor {
|
|||
encoder.copy_buffer_to_buffer(
|
||||
layout.output_buffer.buffer().ok_or_else(|| anyhow::anyhow!("Tried to use an non buffer as the shader output"))?,
|
||||
0,
|
||||
&output,
|
||||
output,
|
||||
0,
|
||||
size,
|
||||
);
|
||||
|
@ -153,7 +153,7 @@ impl gpu_executor::GpuExecutor for NewExecutor {
|
|||
}
|
||||
|
||||
fn read_output_buffer(&self, buffer: Arc<ShaderInput<Self::BufferHandle>>) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>>>> {
|
||||
let future = Box::pin(async move {
|
||||
Box::pin(async move {
|
||||
if let ShaderInput::ReadBackBuffer(buffer, _) = buffer.as_ref() {
|
||||
let buffer_slice = buffer.slice(..);
|
||||
|
||||
|
@ -187,8 +187,7 @@ impl gpu_executor::GpuExecutor for NewExecutor {
|
|||
} else {
|
||||
bail!("Tried to read a non readback buffer")
|
||||
}
|
||||
});
|
||||
future
|
||||
}) as _
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue