We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 474d9b9 commit fa75371Copy full SHA for fa75371
src/current.rs
@@ -30,6 +30,6 @@ pub fn mcu_name() -> Option<String> {
30
31
/// Checks if the current cargo target architecture is AVR.
32
pub fn is_compiling_for_avr() -> bool {
33
- env::var("CARGO_CFG_TARGET_ARCH").unwrap() == "avr"
+ env::var("CARGO_CFG_TARGET_ARCH") == Ok("avr".to_string())
34
}
35
0 commit comments