@@ -56,6 +56,10 @@ impl LineEnding {
59+ // Normally we'd want to implement the FromStr trait, but in this case
60+ // that would force us into a different return type than from_char or
61+ // or from_rope_slice, which would be weird.
62+ #[allow(clippy::should_implement_trait)]
60 pub fn from_str(g: &str) -> Option<LineEnding> {
64 pub fn from_str(g: &str) -> Option<LineEnding> {