@@ -280,18 +280,16 @@ impl Document {
280 // TODO: this is probably a generally useful utility function. Where
280 // TODO: this is probably a generally useful utility function. Where
281 // should we put it?
281 // should we put it?
282 fn char_is_linebreak(c: char) -> bool {
282 fn char_is_linebreak(c: char) -> bool {
284− '\u{000A}' | // LineFeed
284+ '\u{000A}', // LineFeed
285− '\u{000B}' | // VerticalTab
285+ '\u{000B}', // VerticalTab
286− '\u{000C}' | // FormFeed
286+ '\u{000C}', // FormFeed
287− '\u{000D}' | // CarriageReturn
287+ '\u{000D}', // CarriageReturn
288− '\u{0085}' | // NextLine
288+ '\u{0085}', // NextLine
289− '\u{2028}' | // Line Separator
289+ '\u{2028}', // Line Separator
290− '\u{2029}' // ParagraphSeparator
290+ '\u{2029}', // ParagraphSeparator
297 // Determine whether a character qualifies as (non-line-break)
295 // Determine whether a character qualifies as (non-line-break)
@@ -320,7 +318,7 @@ impl Document {
320 // En Quad, Em Quad, En Space, Em Space, Three-per-em Space,
318 // En Quad, Em Quad, En Space, Em Space, Three-per-em Space,
321 // Four-per-em Space, Six-per-em Space, Figure Space,
319 // Four-per-em Space, Six-per-em Space, Figure Space,
322 // Punctuation Space, Thin Space, Hair Space, Zero Width Space.
320 // Punctuation Space, Thin Space, Hair Space, Zero Width Space.
323− c if c >= '\u{2000}' && c <= '\u{200B}' => true,
321+ c if ('\u{2000}' ..= '\u{200B}').contains(&c) => true,
325 _ => false,
323 _ => false,
@@ -436,7 +434,7 @@ impl Document {
436 .and_then(|config| config.indent.as_ref())
434 .and_then(|config| config.indent.as_ref())
437 .map_or(" ", |config| config.unit.as_str()); // fallback to 2 spaces
435 .map_or(" ", |config| config.unit.as_str()); // fallback to 2 spaces
439− self.indent_style = if indent.starts_with(" ") {
437+ self.indent_style = if indent.starts_with(' ') {
440 IndentStyle::Spaces(indent.len() as u8)
438 IndentStyle::Spaces(indent.len() as u8)
442 IndentStyle::Tabs
440 IndentStyle::Tabs