tidy features: use 2-parameter form of internal try macro for open err
This tiny patch merely applies @bluss's suggestion for how to get a more informative error message when the feature check can't open a file, a matter that had briefly annoyed the present author, leading to the filing of #38417.
This commit is contained in:
parent
d250169cb5
commit
ca376049ca
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ pub fn check(path: &Path, bad: &mut bool) {
|
|||
}
|
||||
|
||||
contents.truncate(0);
|
||||
t!(t!(File::open(file)).read_to_string(&mut contents));
|
||||
t!(t!(File::open(&file), &file).read_to_string(&mut contents));
|
||||
|
||||
for (i, line) in contents.lines().enumerate() {
|
||||
let mut err = |msg: &str| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue