diff options
| author | Austin Hellyer <[email protected]> | 2017-02-01 17:38:18 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2017-02-01 17:38:18 -0800 |
| commit | 97f9bd10c16eb24d54a0ab00c52f19eb51a88675 (patch) | |
| tree | 46d7e2ce70553917f42efa6506f01b70739b0d81 /examples/06_command_framework/src | |
| parent | Optimize presence update for self in cache (diff) | |
| download | serenity-97f9bd10c16eb24d54a0ab00c52f19eb51a88675.tar.xz serenity-97f9bd10c16eb24d54a0ab00c52f19eb51a88675.zip | |
Fix unreachable patterns in command macro
When attempting to use a named argument with a type of String, the
framework will try to parse the received argument - a String - into a
String. This can never fail, so Rust warns that the `Err` arm of the
`match` can never be reached.
Let's just ignore that and everything will be fine.
Diffstat (limited to 'examples/06_command_framework/src')
0 files changed, 0 insertions, 0 deletions