Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn on Unhandled commands #1533

Merged
merged 6 commits into from
Jan 29, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Forgot one usage of .str
maan2003 committed Jan 29, 2021
commit 4826da9ee6018f0bd655a5aff2d9138f432764b7
6 changes: 3 additions & 3 deletions druid/src/command.rs
Original file line number Diff line number Diff line change
@@ -513,9 +513,9 @@ impl Command {
pub fn get_unchecked<T: Any>(&self, selector: Selector<T>) -> &T {
self.get(selector).unwrap_or_else(|| {
panic!(
"Expected selector \"{}\" but the command was \"{}\".",
selector.symbol().str,
self.symbol.str
"Expected selector {:?} but the command was {:?}.",
selector.symbol(),
self.symbol
)
})
}