We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98726d0 commit 0f254bbCopy full SHA for 0f254bb
src/bin/rustfmt.rs
@@ -43,7 +43,8 @@ enum Operation {
43
Stdin(String, WriteMode),
44
}
45
46
-/// Try to find a project file in the given directory and its parents.
+/// Try to find a project file in the given directory and its parents. Returns the path of a the
47
+/// nearest project file if one exists, or `None` if no project file was found.
48
fn lookup_project_file(dir: &Path) -> io::Result<Option<PathBuf>> {
49
let mut current = if dir.is_relative() {
50
try!(env::current_dir()).join(dir)
0 commit comments