We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7794446 commit f3e9edaCopy full SHA for f3e9eda
src/digital_io/gpio/demo_mode.rs
@@ -81,8 +81,8 @@ impl FindDecoy {
81
}
82
83
84
-pub fn find_line(name: &str) -> Result<FindDecoy> {
85
- Ok(FindDecoy {
+pub fn find_line(name: &str) -> Option<FindDecoy> {
+ Some(FindDecoy {
86
name: name.to_string(),
87
})
88
src/digital_io/gpio/test.rs
@@ -88,7 +88,7 @@ impl FindDecoy {
89
90
91
92
let val = {
93
let mut lines = block_on(LINES.lock());
94
@@ -101,7 +101,7 @@ pub fn find_line(name: &str) -> Result<FindDecoy> {
101
102
};
103
104
105
106
val,
107
0 commit comments