google / open-location-code

Open Location Code is a library to generate short codes, called "plus codes", that can be used as digital addresses where street addresses don't exist.
https://plus.codes
Apache License 2.0
4.06k stars 472 forks source link

Rust: Unnecessary unwrap #407

Closed andrew-barnard closed 2 years ago

andrew-barnard commented 4 years ago

Unnecessary unwrap in interface.rs:51:20 Instead of checking and unwrapping, it's better to use if let or match for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap

andrew-barnard commented 4 years ago

Happy to address

fulldecent commented 3 years ago

Recommended tag: implementation

Please proceed to provide a PR here