Silence clippy warning.
commit3d3149e0d55f54440fa28a446ef3facdb386e5c1
authorNathan Vegdahl <cessen@cessen.com>
dateSun 20 Jun 2021, 16:13 (5 years ago)
parente686c3e
helix-core/src/line_ending.rs+4
@@ -56,6 +56,10 @@ impl LineEnding {
5656 }
5757 }
5858
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)]
5963 #[inline]
6064 pub fn from_str(g: &str) -> Option<LineEnding> {
6165 match g {