Skip to content

Commit cc189e9

Browse files
committed
Move some files
1 parent 65d91fc commit cc189e9

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

rustfmt-core/rustfmt-lib/src/formatting/syntux/session.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ use crate::config::{file_lines::LineRange, Config, FileName};
1616
use crate::formatting::{
1717
source_map::LineRangeUtils, utils::starts_with_newline, visitor::SnippetProvider,
1818
};
19-
use crate::ignore_path::IgnorePathSet;
2019
use crate::result::OperationError;
20+
use ignore_path::IgnorePathSet;
21+
22+
mod ignore_path;
2123

2224
/// ParseSess holds structs necessary for constructing a parser.
2325
pub(crate) struct ParseSess {

rustfmt-core/rustfmt-lib/src/ignore_path.rs renamed to rustfmt-core/rustfmt-lib/src/formatting/syntux/session/ignore_path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ impl IgnorePathSet {
3434
mod test {
3535
use std::path::{Path, PathBuf};
3636

37+
use super::IgnorePathSet;
3738
use crate::config::{Config, FileName};
38-
use crate::ignore_path::IgnorePathSet;
3939

4040
#[test]
4141
fn test_ignore_path_set() {

rustfmt-core/rustfmt-lib/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ pub mod config;
3030
pub mod emitter;
3131

3232
mod format_report_formatter;
33-
pub(crate) mod formatting;
34-
mod ignore_path;
33+
mod formatting;
3534
mod release_channel;
3635
pub mod result;
3736
#[cfg(test)]

0 commit comments

Comments
 (0)