You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```
src/config.rs:203:5: 213:6 warning: defining a method called `from_str` on this type; consider implementing the `std::str::FromStr` trait or choosing a less ambiguous name, #[warn(should_implement_trait)] on by default
src/config.rs:203 pub fn from_str(config: &str) -> Result<GpioConfig, Error> {
src/config.rs:204 let mut parser = toml::Parser::new(config);
src/config.rs:205 let root = try!(parser.parse().ok_or(parser.errors));
src/config.rs:206 match GpioConfig::decode(&mut toml::Decoder::new(toml::Value::Table(root))) {
src/config.rs:207 Ok(cfg) => {
src/config.rs:208 try!(cfg.validate().or_else(|e| Err(Error::from(e))));
...
src/config.rs:203:5: 213:6 help: for further information visit https://github.com/Manishearth/rust-clippy/wiki#should_implement_trait
```
Signed-off-by: Paul Osborne <[email protected]>
0 commit comments