1
Fork 0

Prefer unreachable! to panic!

This commit is contained in:
topecongiro 2017-10-26 16:55:48 +09:00
parent c7a788084b
commit f2eebb0e62

View file

@ -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),
}
}