cargo clippy + fmt

This commit is contained in:
Matthieu Baumann
2026-05-27 16:29:30 +02:00
parent 64042cea5f
commit 44fdfad61c
5 changed files with 5557 additions and 5560 deletions
-3
View File
@@ -1,5 +1,3 @@
use wasm_bindgen::JsValue;
use super::blend::BlendCfg;
use serde::Deserialize;
@@ -282,7 +280,6 @@ pub struct ImageMetadata {
fn default_opacity() -> f32 {
1.0
}
use crate::Abort;
impl ImageMetadata {
pub fn visible(&self) -> bool {
+4 -1
View File
@@ -1854,7 +1854,10 @@ impl App {
}
pub(crate) fn get_fov(&self) -> [f64; 2] {
[self.camera.get_aperture().to_degrees(), self.camera.get_aperture_y().to_degrees()]
[
self.camera.get_aperture().to_degrees(),
self.camera.get_aperture_y().to_degrees(),
]
}
pub(crate) fn get_colormaps(&self) -> &Colormaps {
+1 -2
View File
@@ -199,7 +199,7 @@ impl CameraViewPort {
max_fov: None,
scissor_w,
scissor_h
scissor_h,
}
}
@@ -301,7 +301,6 @@ impl CameraViewPort {
pub fn set_screen_size(&mut self, width: f32, height: f32, projection: &ProjectionType) {
let old_w = self.width;
let old_h = self.height;
self.width = width * self.dpi;
self.height = height * self.dpi;
+1 -3
View File
@@ -722,9 +722,7 @@ impl Image {
//self.gl.enable(WebGl2RenderingContext::BLEND);
let ImageMetadata {
opacity,
blending,
..
opacity, blending, ..
} = cfg;
let shader = match self.pixel_type {
+5551 -5551
View File
File diff suppressed because it is too large Load Diff