mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
Merge pull request #791 from kamalmarhubi/canonicalize-path
bin: Canonicalize path before looking for project file
This commit is contained in:
commit
1d216e1829
@ -51,9 +51,7 @@ fn lookup_project_file(input_file: &Path) -> io::Result<PathBuf> {
|
||||
input_file.to_path_buf()
|
||||
};
|
||||
|
||||
// FIXME: We should canonize path to properly handle its parents,
|
||||
// but `canonicalize` function is unstable now (recently added API)
|
||||
// current = try!(fs::canonicalize(current));
|
||||
current = try!(fs::canonicalize(current));
|
||||
|
||||
loop {
|
||||
let config_file = current.join("rustfmt.toml");
|
||||
|
Loading…
Reference in New Issue
Block a user