on master help sign in
Silence clippy warning.
3d3149eNathan Vegdahl
helix-core/src/line_ending.rs+4
@@ -56,6 +56,10 @@ impl LineEnding {
56 }
56 }
57 }
57 }
58
58
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)]
59 #[inline]
63 #[inline]
60 pub fn from_str(g: &str) -> Option<LineEnding> {
64 pub fn from_str(g: &str) -> Option<LineEnding> {
61 match g {
65 match g {