run rustfmt on clippy, not only on clippy_lints
This commit is contained in:
parent
009c6d95d7
commit
0553de8573
23
src/main.rs
23
src/main.rs
|
@ -39,19 +39,32 @@ impl ClippyCompilerCalls {
|
||||||
|
|
||||||
impl<'a> CompilerCalls<'a> for ClippyCompilerCalls {
|
impl<'a> CompilerCalls<'a> for ClippyCompilerCalls {
|
||||||
fn early_callback(
|
fn early_callback(
|
||||||
&mut self, matches: &getopts::Matches, sopts: &config::Options, cfg: &ast::CrateConfig,
|
&mut self,
|
||||||
descriptions: &rustc_errors::registry::Registry, output: ErrorOutputType
|
matches: &getopts::Matches,
|
||||||
|
sopts: &config::Options,
|
||||||
|
cfg: &ast::CrateConfig,
|
||||||
|
descriptions: &rustc_errors::registry::Registry,
|
||||||
|
output: ErrorOutputType
|
||||||
) -> Compilation {
|
) -> Compilation {
|
||||||
self.default.early_callback(matches, sopts, cfg, descriptions, output)
|
self.default.early_callback(matches, sopts, cfg, descriptions, output)
|
||||||
}
|
}
|
||||||
fn no_input(
|
fn no_input(
|
||||||
&mut self, matches: &getopts::Matches, sopts: &config::Options, cfg: &ast::CrateConfig, odir: &Option<PathBuf>,
|
&mut self,
|
||||||
ofile: &Option<PathBuf>, descriptions: &rustc_errors::registry::Registry
|
matches: &getopts::Matches,
|
||||||
|
sopts: &config::Options,
|
||||||
|
cfg: &ast::CrateConfig,
|
||||||
|
odir: &Option<PathBuf>,
|
||||||
|
ofile: &Option<PathBuf>,
|
||||||
|
descriptions: &rustc_errors::registry::Registry
|
||||||
) -> Option<(Input, Option<PathBuf>)> {
|
) -> Option<(Input, Option<PathBuf>)> {
|
||||||
self.default.no_input(matches, sopts, cfg, odir, ofile, descriptions)
|
self.default.no_input(matches, sopts, cfg, odir, ofile, descriptions)
|
||||||
}
|
}
|
||||||
fn late_callback(
|
fn late_callback(
|
||||||
&mut self, matches: &getopts::Matches, sess: &Session, input: &Input, odir: &Option<PathBuf>,
|
&mut self,
|
||||||
|
matches: &getopts::Matches,
|
||||||
|
sess: &Session,
|
||||||
|
input: &Input,
|
||||||
|
odir: &Option<PathBuf>,
|
||||||
ofile: &Option<PathBuf>
|
ofile: &Option<PathBuf>
|
||||||
) -> Compilation {
|
) -> Compilation {
|
||||||
self.default.late_callback(matches, sess, input, odir, ofile)
|
self.default.late_callback(matches, sess, input, odir, ofile)
|
||||||
|
|
Loading…
Reference in New Issue