rust-embedded / rust-i2cdev

Rust library for interfacing with i2c devices under Linux
Apache License 2.0
205 stars 53 forks source link

Move from `try!` to `?` #43

Closed RandomInsano closed 5 years ago

RandomInsano commented 5 years ago

The ? operator has been around since November 10, 2016 so I've refreshed the code to use it. This more for an exercise in working with the code base than anything else, so feel free to reject it.

This will affect folks on versions older than 1.13, which are few but as of the 2017 survey there were 40 out of 5,368.

Currently waiting for it to build and run on my NTC Chip to test. I'll remove [WIP] when it's ready to roll.