From 7186ce91784a647b3015e04b55a95b109deceeb3 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 18 Jul 2022 16:34:56 +0200 Subject: Change to improve `default_line_ending` api --- src/compiler.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/compiler.rs') diff --git a/src/compiler.rs b/src/compiler.rs index db52837..0993987 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -247,10 +247,8 @@ pub fn compile(events: &[Event], codes: &[Code], options: &Options) -> String { // Figure out which line ending style we’ll use. let line_ending_default = if let Some(value) = line_ending_inferred { value - } else if let Some(value) = &options.default_line_ending { - value.clone() } else { - LineEnding::LineFeed + options.default_line_ending.clone() }; let mut enter_map: Map = HashMap::new(); -- cgit