Closed rkday closed 4 years ago
The README example doesn't seem to work:
Manager.batteries()
Result<Battery>
time_to_charge()
time_to_full()
I also tidied it up a bit so you can paste it straight into a main.rs to try out the library.
Huh, it is indeed outdated, thanks for noticing it! I recall that there were some crate to test code snippets in the README files, I should probably integrate it too
The README example doesn't seem to work:
Manager.batteries()
returns an iterator overResult<Battery>
, not over Battery, so it was missing a ?time_to_charge()
nottime_to_full()
I also tidied it up a bit so you can paste it straight into a main.rs to try out the library.