polyphony-chat / chorus

A Rust library for interacting with multiple Polyphony- and Spacebar-Compatible instances at once.
https://crates.io/crates/chorus
Mozilla Public License 2.0
16 stars 7 forks source link

"Self updating structs" API improvements #467

Closed bitfl0wer closed 7 months ago

bitfl0wer commented 7 months ago

This PR slightly improves the ergonomics of working with self-updating structs, by making the changes as documented in #466.

bitfl0wer commented 7 months ago

This code currently breaks my rust-analyzer a little bit. If this is an issue not specific to my machine, you should see what I mean when checking out the PR and reviewing the files; ra would then show an error where rustc does not. The code compiles fine, but there will always be 1-3 errors shown by ra

edit: huh