Rename wrap => wrapping

This commit is contained in:
sharkdp 2020-04-22 20:34:40 +02:00 committed by David Peter
parent f034be71e7
commit a8f759c080
4 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
use crate::line_range::{HighlightedLineRanges, LineRanges}; use crate::line_range::{HighlightedLineRanges, LineRanges};
use crate::style::StyleComponents; use crate::style::StyleComponents;
use crate::syntax_mapping::SyntaxMapping; use crate::syntax_mapping::SyntaxMapping;
use crate::wrap::WrappingMode; use crate::wrapping::WrappingMode;
#[derive(Debug, Clone, Copy, PartialEq)] #[derive(Debug, Clone, Copy, PartialEq)]
#[cfg(feature = "paging")] #[cfg(feature = "paging")]

View file

@ -35,10 +35,10 @@ pub(crate) mod printer;
pub(crate) mod style; pub(crate) mod style;
pub(crate) mod syntax_mapping; pub(crate) mod syntax_mapping;
mod terminal; mod terminal;
pub(crate) mod wrap; pub(crate) mod wrapping;
pub use line_range::LineRange; pub use line_range::LineRange;
pub use pretty_printer::PrettyPrinter; pub use pretty_printer::PrettyPrinter;
pub use style::{StyleComponent, StyleComponents}; pub use style::{StyleComponent, StyleComponents};
pub use syntax_mapping::{MappingTarget, SyntaxMapping}; pub use syntax_mapping::{MappingTarget, SyntaxMapping};
pub use wrap::WrappingMode; pub use wrapping::WrappingMode;

View file

@ -30,7 +30,7 @@ use crate::input::{OpenedInput, OpenedInputKind};
use crate::line_range::RangeCheckResult; use crate::line_range::RangeCheckResult;
use crate::preprocessor::{expand_tabs, replace_nonprintable}; use crate::preprocessor::{expand_tabs, replace_nonprintable};
use crate::terminal::{as_terminal_escaped, to_ansi_color}; use crate::terminal::{as_terminal_escaped, to_ansi_color};
use crate::wrap::WrappingMode; use crate::wrapping::WrappingMode;
pub(crate) trait Printer { pub(crate) trait Printer {
fn print_header(&mut self, handle: &mut dyn Write, input: &OpenedInput) -> Result<()>; fn print_header(&mut self, handle: &mut dyn Write, input: &OpenedInput) -> Result<()>;