aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-16 04:51:22 +0000
committerBlaž Hrastnik2021-03-16 04:51:35 +0000
commit4f77d80e74b1406b8701f5569b3bec8da2e5ed03 (patch)
tree8f4517310c6e5bbbaaa85d76b3603ef3f21662c3 /helix-core/src
parent081e0ae8ae4ead621010e7e6a060194fe2433bad (diff)
Clippy lint
Diffstat (limited to 'helix-core/src')
-rw-r--r--helix-core/src/syntax.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs
index acf4ad61..2ad06bef 100644
--- a/helix-core/src/syntax.rs
+++ b/helix-core/src/syntax.rs
@@ -178,7 +178,7 @@ pub struct Syntax {
pub(crate) root_layer: LanguageLayer,
}
-fn byte_range_to_str<'a>(range: std::ops::Range<usize>, source: RopeSlice<'a>) -> Cow<'a, str> {
+fn byte_range_to_str(range: std::ops::Range<usize>, source: RopeSlice) -> Cow<str> {
let start_char = source.byte_to_char(range.start);
let end_char = source.byte_to_char(range.end);
Cow::from(source.slice(start_char..end_char))