Fix typo
Co-Authored-By: lzutao <taolzu@gmail.com>
This commit is contained in:
parent
7a6af7eb0e
commit
b97ee0f07a
@ -9,7 +9,7 @@ fn main() {
|
||||
// inspect the `PanicInfo` we receive to ensure the right file is the source
|
||||
std::panic::set_hook(Box::new(|info| {
|
||||
let actual = info.location().unwrap();
|
||||
if actual.file() != file!(){
|
||||
if actual.file() != file!() {
|
||||
eprintln!("expected a location in the test file, found {:?}", actual);
|
||||
panic!();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user