Prefer unreachable! to panic!
This commit is contained in:
parent
c7a788084b
commit
f2eebb0e62
1 changed files with 1 additions and 1 deletions
|
@ -76,6 +76,6 @@ fn module_file(
|
|||
|
||||
match parser::Parser::default_submod_path(id, dir_path, codemap).result {
|
||||
Ok(parser::ModulePathSuccess { path, .. }) => path,
|
||||
Err(_) => panic!("Couldn't find module {}", id),
|
||||
Err(_) => unreachable!("Couldn't find module {}", id),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue