Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up macro usage in
model::misc
(#1822)
Refactor `impl_from_str!` to cut down on complexity, and move the error handling logic for `Channel` and `Role` into their respective modules. Furthermore, remove the unused `misc::UserParseError` enum, as it's long been replaced by `argument_convert::UserParseError` in use.
- Loading branch information
1 parent
8c9670f
commit 5a0e8f4
Showing
3 changed files
with
47 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters