panic => unreachable

This commit is contained in:
sharkdp 2020-04-04 10:13:13 +02:00 committed by David Peter
parent ed45d1c5af
commit 439548c25a
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ impl CommandTemplate {
"{/}" => tokens.push(Token::Basename),
"{//}" => tokens.push(Token::Parent),
"{/.}" => tokens.push(Token::BasenameNoExt),
_ => panic!("Unhandled placeholder"),
_ => unreachable!("Unhandled placeholder"),
}
has_placeholder = true;