mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-08 07:18:01 +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
|
@ -117,7 +117,7 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
impl<'i, N> FutureWrapperNode<N> {
|
||||
impl<N> FutureWrapperNode<N> {
|
||||
pub const fn new(node: N) -> Self {
|
||||
Self { node }
|
||||
}
|
||||
|
|
|
@ -170,7 +170,7 @@ fn blit_node<_P: Alpha + Pixel + std::fmt::Debug, BlendFn>(mut target: ImageFram
|
|||
where
|
||||
BlendFn: for<'any_input> Node<'any_input, (_P, _P), Output = _P>,
|
||||
{
|
||||
if positions.len() == 0 {
|
||||
if positions.is_empty() {
|
||||
return target;
|
||||
}
|
||||
|
||||
|
|
|
@ -402,11 +402,7 @@ async fn blend_gpu_image(foreground: ImageFrame<Color>, background: ImageFrame<C
|
|||
};
|
||||
log::debug!("created pipeline");
|
||||
let compute_pass = executor
|
||||
.create_compute_pass(
|
||||
&pipeline,
|
||||
Some(readback_buffer.clone()),
|
||||
ComputePassDimensions::XY(background.image.width as u32, background.image.height as u32),
|
||||
)
|
||||
.create_compute_pass(&pipeline, Some(readback_buffer.clone()), ComputePassDimensions::XY(background.image.width, background.image.height))
|
||||
.unwrap();
|
||||
executor.execute_compute_pipeline(compute_pass).unwrap();
|
||||
log::debug!("executed pipeline");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue