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

Split up gateway, fix a few clippy warnings #436

Closed bitfl0wer closed 9 months ago

bitfl0wer commented 9 months ago

As the title suggests, Gateway has been split up into several files, due to it being several hundred locs in length and, in my opinion, becoming difficult/frustrating to navigate.

I have also fixed 2 clippy warnings: I have refactored an if x.is_some()... { x.unwrap() } into the more idiomatic if let Some(y) = x ..., and I have removed the duplicate definition of NSFWLevel in types/invite.