bin: Canonicalize path before looking for project file

This commit is contained in:
Kamal Marhubi 2016-01-31 02:01:54 -05:00
parent fb17a44584
commit 7a0d8be405

View file

@ -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");