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:
Prikshit Gautam
2023-06-07 11:32:46 +02:00
committed by Dennis Kobert
parent 9b4bc566eb
commit f933ece04d
33 changed files with 54 additions and 60 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
#![allow(clippy::too_many_arguments)]
use super::Color;
use crate::Node;
use core::fmt::Debug;
use dyn_any::{DynAny, StaticType};
#[cfg(feature = "serde")]
@@ -195,7 +195,7 @@ fn extract_channel_node(color: Color, channel: RedGreenBlue) -> Color {
RedGreenBlue::Green => color.g(),
RedGreenBlue::Blue => color.b(),
};
return color.map_rgb(|_| extracted_value);
color.map_rgb(|_| extracted_value)
}
#[derive(Debug, Clone, Copy, Default)]