Skip to content

Commit 0cb8ecd

Browse files
Copilottomtau
andcommitted
Fix clippy warnings for lifetime elision in csv examples
Add explicit lifetime parameter `<'_>` to Span type to fix mismatched_lifetime_syntaxes clippy warnings. Co-authored-by: tomtau <[email protected]>
1 parent e2b717b commit 0cb8ecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/csv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mod ast {
1919
use super::csv::Rule;
2020
use pest::Span;
2121

22-
fn span_into_str(span: Span) -> &str {
22+
fn span_into_str(span: Span<'_>) -> &str {
2323
span.as_str()
2424
}
2525

0 commit comments

Comments
 (0)