Skip to content
Myr

panic => unreachable

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by David Peter · parent ed45d1c · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/exec/mod.rs+1 added-1 removed
95 unmodified lines
96 "{.}" => tokens.push(Token::NoExt),97 "{/}" => tokens.push(Token::Basename),98 "{//}" => tokens.push(Token::Parent),99 "{/.}" => tokens.push(Token::BasenameNoExt),100 _ => panic!("Unhandled placeholder"),100 _ => unreachable!("Unhandled placeholder"),101 }102103 has_placeholder = true;104 }
236 unmodified lines