From 034943ab05794051c36f7f79920f9b753ebc1b39 Mon Sep 17 00:00:00 2001 From: Ben Brandt Date: Sat, 14 Dec 2024 06:28:28 +0100 Subject: [PATCH] style: fix clippy lints --- src/splitter/code.rs | 2 +- tests/code.rs | 1 + tests/markdown.rs | 1 + tests/snapshots.rs | 1 + tests/text_splitter.rs | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/splitter/code.rs b/src/splitter/code.rs index 8ff6faa8..71dd7585 100644 --- a/src/splitter/code.rs +++ b/src/splitter/code.rs @@ -192,7 +192,7 @@ impl<'cursor> CursorOffsets<'cursor> { } } -impl<'cursor> Iterator for CursorOffsets<'cursor> { +impl Iterator for CursorOffsets<'_> { type Item = (Depth, Range); fn next(&mut self) -> Option { diff --git a/tests/code.rs b/tests/code.rs index b470811d..2a32bbcd 100644 --- a/tests/code.rs +++ b/tests/code.rs @@ -1,3 +1,4 @@ +//! Test for `CodeSplitter` behavior. use std::fs; use fake::{Fake, Faker}; diff --git a/tests/markdown.rs b/tests/markdown.rs index 6670275a..f6f33eb3 100644 --- a/tests/markdown.rs +++ b/tests/markdown.rs @@ -1,3 +1,4 @@ +//! Test for `MarkdownSplitter` behavior. use std::fs; use fake::{Fake, Faker}; diff --git a/tests/snapshots.rs b/tests/snapshots.rs index 85496fe2..f6a3ae3c 100644 --- a/tests/snapshots.rs +++ b/tests/snapshots.rs @@ -1,3 +1,4 @@ +//! Snapshot tests for regressions in chunk output. use std::{fs, ops::RangeInclusive, path::PathBuf}; use cached_path::Cache; diff --git a/tests/text_splitter.rs b/tests/text_splitter.rs index 3b2bf943..50d0624f 100644 --- a/tests/text_splitter.rs +++ b/tests/text_splitter.rs @@ -1,3 +1,4 @@ +//! Test for `TextSplitter` behavior. use std::fs; use fake::{Fake, Faker};