Function rustfmt_nightly::config::get_toml_path [] [src]

pub fn get_toml_path(dir: &Path) -> Result<Option<PathBuf>, Error>

Check for the presence of known config file names (rustfmt.toml,.rustfmt.toml) indir`

Return the path if a config file exists, empty if no file exists, and Error for IO errors