mirror of
https://github.com/helix-editor/helix.git
synced 2024-09-20 08:05:10 +03:00
Silence clippy warning.
This commit is contained in:
parent
e686c3e462
commit
3d3149e0d5
@ -56,6 +56,10 @@ pub fn from_char(ch: char) -> Option<LineEnding> {
|
||||
}
|
||||
}
|
||||
|
||||
// Normally we'd want to implement the FromStr trait, but in this case
|
||||
// that would force us into a different return type than from_char or
|
||||
// or from_rope_slice, which would be weird.
|
||||
#[allow(clippy::should_implement_trait)]
|
||||
#[inline]
|
||||
pub fn from_str(g: &str) -> Option<LineEnding> {
|
||||
match g {
|
||||
|
Loading…
Reference in New Issue
Block a user