ewilken / hap-rs

Rust implementation of the Apple HomeKit Accessory Protocol (HAP)
Apache License 2.0
196 stars 33 forks source link

Change Fn to FnMut for update methods #71

Closed soundprojects closed 2 years ago

ewilken commented 2 years ago

Thanks for you contribution! Looks good!

Tested it with the callbacks and async_callbacks examples and all seems to work fine.

Merged on another PR where I could push a formatting fix and version bump in between. So closing. I'm gonna publish a new release with this change in it to crates.io tomorrow.

ewilken commented 2 years ago

The update is live! Thinking about this now, why didn't you change OnReadFn too?

soundprojects commented 2 years ago

Hmmm I guess I missed that one.........😅