From a8f759c0809fab3839c01e83440700740601f246 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Wed, 22 Apr 2020 20:34:40 +0200 Subject: Rename wrap => wrapping --- src/config.rs | 2 +- src/lib.rs | 4 ++-- src/printer.rs | 2 +- src/wrap.rs | 11 ----------- src/wrapping.rs | 11 +++++++++++ 5 files changed, 15 insertions(+), 15 deletions(-) delete mode 100644 src/wrap.rs create mode 100644 src/wrapping.rs diff --git a/src/config.rs b/src/config.rs index 52b6fb27..f276176b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,7 +1,7 @@ use crate::line_range::{HighlightedLineRanges, LineRanges}; use crate::style::StyleComponents; use crate::syntax_mapping::SyntaxMapping; -use crate::wrap::WrappingMode; +use crate::wrapping::WrappingMode; #[derive(Debug, Clone, Copy, PartialEq)] #[cfg(feature = "paging")] diff --git a/src/lib.rs b/src/lib.rs index 2b14c11e..bc697cb4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -35,10 +35,10 @@ pub(crate) mod printer; pub(crate) mod style; pub(crate) mod syntax_mapping; mod terminal; -pub(crate) mod wrap; +pub(crate) mod wrapping; pub use line_range::LineRange; pub use pretty_printer::PrettyPrinter; pub use style::{StyleComponent, StyleComponents}; pub use syntax_mapping::{MappingTarget, SyntaxMapping}; -pub use wrap::WrappingMode; +pub use wrapping::WrappingMode; diff --git a/src/printer.rs b/src/printer.rs index baa3e995..4f7fcae9 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -30,7 +30,7 @@ use crate::input::{OpenedInput, OpenedInputKind}; use crate::line_range::RangeCheckResult; use crate::preprocessor::{expand_tabs, replace_nonprintable}; use crate::terminal::{as_terminal_escaped, to_ansi_color}; -use crate::wrap::WrappingMode; +use crate::wrapping::WrappingMode; pub(crate) trait Printer { fn print_header(&mut self, handle: &mut dyn Write, input: &OpenedInput) -> Result<()>; diff --git a/src/wrap.rs b/src/wrap.rs deleted file mode 100644 index 6138606e..00000000 --- a/src/wrap.rs +++ /dev/null @@ -1,11 +0,0 @@ -#[derive(Debug, Clone, Copy, PartialEq, Eq)] -pub enum WrappingMode { - Character, - NoWrapping, -} - -impl Default for WrappingMode { - fn default() -> Self { - WrappingMode::NoWrapping - } -} diff --git a/src/wrapping.rs b/src/wrapping.rs new file mode 100644 index 00000000..6138606e --- /dev/null +++ b/src/wrapping.rs @@ -0,0 +1,11 @@ +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum WrappingMode { + Character, + NoWrapping, +} + +impl Default for WrappingMode { + fn default() -> Self { + WrappingMode::NoWrapping + } +} -- cgit v1.2.3