We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ffaa6fc + be3be58 commit 1b71956Copy full SHA for 1b71956
src/bin/main.rs
@@ -18,7 +18,7 @@ extern crate rustfmt_nightly as rustfmt;
18
use std::env;
19
use std::fs::File;
20
use std::io::{self, stdout, Read, Write};
21
-use std::path::PathBuf;
+use std::path::{Path, PathBuf};
22
23
use failure::err_msg;
24
@@ -182,7 +182,7 @@ fn execute(opts: &Options) -> FmtResult<(WriteMode, Summary)> {
182
Operation::Stdin { input } => {
183
// try to read config from local directory
184
let options = CliOptions::from_matches(&matches)?;
185
- let (mut config, _) = load_config(None, Some(&options))?;
+ let (mut config, _) = load_config(Some(Path::new(".")), Some(&options))?;
186
187
// write_mode is always Plain for Stdin.
188
config.set().write_mode(WriteMode::Plain);
0 commit comments