From fecde70cf96550fe7bcba751cb16676b8a253969 Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Thu, 10 Feb 2022 18:49:18 +0000 Subject: [PATCH] Derive several traits for ClockError --- rp2040-hal/src/clocks/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rp2040-hal/src/clocks/mod.rs b/rp2040-hal/src/clocks/mod.rs index e8cb8f8..db1a7d4 100644 --- a/rp2040-hal/src/clocks/mod.rs +++ b/rp2040-hal/src/clocks/mod.rs @@ -99,6 +99,8 @@ impl ShareableClocks { } /// Something when wrong setting up the clock +#[non_exhaustive] +#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)] pub enum ClockError { /// The frequency desired is higher than the source frequency CantIncreaseFreq,