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 b340e95 commit c61efadCopy full SHA for c61efad
src/config.rs
@@ -52,7 +52,7 @@ impl Into<PinConfig> for RawPinConfig {
52
53
impl Decodable for Direction {
54
fn decode<D: Decoder>(d: &mut D) -> Result<Direction, D::Error> {
55
- match try!(d.read_str()).as_str() {
+ match &try!(d.read_str())[..] {
56
"in" => Ok(Direction(sysfs_gpio::Direction::In)),
57
"out" => Ok(Direction(sysfs_gpio::Direction::Out)),
58
"high" => Ok(Direction(sysfs_gpio::Direction::High)),
0 commit comments