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.
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 idiomaticif let Some(y) = x ...
, and I have removed the duplicate definition ofNSFWLevel
intypes/invite
.