Skip to content

Commit a395fbf

Browse files
committed
Fix/suppress new Clippy warnings introduced in Rust 1.82
1 parent c3a3c4c commit a395fbf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

node-graph/gcore/src/raster/adjustments.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -810,9 +810,8 @@ impl Adjust<Color> for Color {
810810
}
811811
impl Adjust<Color> for Option<Color> {
812812
fn adjust(&mut self, map_fn: impl Fn(&Color) -> Color) {
813-
match self {
814-
Some(ref mut v) => *v = map_fn(v),
815-
None => (),
813+
if let Some(ref mut v) = self {
814+
*v = map_fn(v)
816815
}
817816
}
818817
}

node-graph/graph-craft/src/document/value.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ macro_rules! tagged_value {
2525
/// A type that is known, allowing serialization (serde::Deserialize is not object safe)
2626
#[derive(Clone, Debug, PartialEq)]
2727
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
28+
#[allow(clippy::large_enum_variant)] // TODO(TrueDoctor): Properly solve this disparity between the size of the largest and next largest variants
2829
pub enum TaggedValue {
2930
None,
3031
$( $(#[$meta] ) *$identifier( $ty ), )*

website/other/bezier-rs-demos/wasm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub fn init() {
1919
log::set_logger(&LOGGER).expect("Failed to set logger");
2020
log::set_max_level(log::LevelFilter::Trace);
2121

22-
fn panic_hook(info: &std::panic::PanicInfo<'_>) {
22+
fn panic_hook(info: &std::panic::PanicHookInfo<'_>) {
2323
// Skip if we have already panicked
2424
if HAS_CRASHED.with(|cell| cell.replace(true)) {
2525
return;

0 commit comments

Comments
 (0)