Skip to content

Commit f8ed7ac

Browse files
committed
mv src/conf.rs src/utils
1 parent 9454b71 commit f8ed7ac

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/lib.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ extern crate rustc_plugin;
3838

3939
use rustc_plugin::Registry;
4040

41-
mod conf;
4241
pub mod consts;
4342
#[macro_use]
4443
pub mod utils;
@@ -109,12 +108,12 @@ mod reexport {
109108
#[plugin_registrar]
110109
#[cfg_attr(rustfmt, rustfmt_skip)]
111110
pub fn plugin_registrar(reg: &mut Registry) {
112-
let conferr = match conf::conf_file(reg.args()) {
111+
let conferr = match utils::conf::conf_file(reg.args()) {
113112
Ok(Some(file_name)) => {
114-
conf::read_conf(&file_name, true)
113+
utils::conf::read_conf(&file_name, true)
115114
}
116115
Ok(None) => {
117-
conf::read_conf("Clippy.toml", false)
116+
utils::conf::read_conf("Clippy.toml", false)
118117
}
119118
Err((err, span)) => {
120119
reg.sess.struct_span_err(span, err).emit();
File renamed without changes.

src/utils/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use syntax::codemap::{ExpnInfo, Span, ExpnFormat};
1414
use syntax::errors::DiagnosticBuilder;
1515
use syntax::ptr::P;
1616

17+
pub mod conf;
1718
mod hir;
1819
pub use self::hir::{SpanlessEq, SpanlessHash};
1920
pub type MethodArgs = HirVec<P<Expr>>;

0 commit comments

Comments
 (0)