aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb/build.rs
diff options
context:
space:
mode:
authorRafael Bachmann <[email protected]>2023-10-15 23:45:44 +0200
committerRafael Bachmann <[email protected]>2023-10-15 23:52:44 +0200
commit31d4516516940720101300a40d0d6d2bb8d1728e (patch)
treece44bfebf56fea7726bccae7d2617efd360af319 /embassy-usb/build.rs
parent66e62e999409fd6967ab959a061f7eae660102d0 (diff)
Apply Pedantic Clippy Lints
Diffstat (limited to 'embassy-usb/build.rs')
-rw-r--r--embassy-usb/build.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/embassy-usb/build.rs b/embassy-usb/build.rs
index 33d32f7d3..5e3bec485 100644
--- a/embassy-usb/build.rs
+++ b/embassy-usb/build.rs
@@ -70,9 +70,11 @@ fn main() {
70 70
71 // envvars take priority. 71 // envvars take priority.
72 if !cfg.seen_env { 72 if !cfg.seen_env {
73 if cfg.seen_feature { 73 assert!(
74 panic!("multiple values set for feature {}: {} and {}", name, cfg.value, value); 74 !cfg.seen_feature,
75 } 75 "multiple values set for feature {}: {} and {}",
76 name, cfg.value, value
77 );
76 78
77 cfg.value = value; 79 cfg.value = value;
78 cfg.seen_feature = true; 80 cfg.seen_feature = true;