panic => unreachable
@@ -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;
