Function rustfmt_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) in
dir`
Return the path if a config file exists, empty if no file exists, and Error for IO errors