@@ -132,19 +132,19 @@ pub fn get_line_ending(line: &RopeSlice) -> Option<LineEnding> {
132pub fn get_line_ending_of_str(line: &str) -> Option<LineEnding> {
132pub fn get_line_ending_of_str(line: &str) -> Option<LineEnding> {
133 if line.ends_with("\u{000D}\u{000A}") {
133 if line.ends_with("\u{000D}\u{000A}") {
134 Some(LineEnding::Crlf)
134 Some(LineEnding::Crlf)
135− } else if line.ends_with("\u{000A}") {
135+ } else if line.ends_with('\u{000A}') {
136 Some(LineEnding::LF)
136 Some(LineEnding::LF)
137− } else if line.ends_with("\u{000B}") {
137+ } else if line.ends_with('\u{000B}') {
138 Some(LineEnding::VT)
138 Some(LineEnding::VT)
139− } else if line.ends_with("\u{000C}") {
139+ } else if line.ends_with('\u{000C}') {
140 Some(LineEnding::FF)
140 Some(LineEnding::FF)
141− } else if line.ends_with("\u{000D}") {
141+ } else if line.ends_with('\u{000D}') {
142 Some(LineEnding::CR)
142 Some(LineEnding::CR)
143− } else if line.ends_with("\u{0085}") {
143+ } else if line.ends_with('\u{0085}') {
144 Some(LineEnding::Nel)
144 Some(LineEnding::Nel)
145− } else if line.ends_with("\u{2028}") {
145+ } else if line.ends_with('\u{2028}') {
146 Some(LineEnding::LS)
146 Some(LineEnding::LS)
147− } else if line.ends_with("\u{2029}") {
147+ } else if line.ends_with('\u{2029}') {
148 Some(LineEnding::PS)
148 Some(LineEnding::PS)