Skip to content

Commit 31fb009

Browse files
committed
[FIX] fix all clippy and doc tests errors
1 parent 8b63662 commit 31fb009

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

parquet-variant/src/to_json.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fn format_binary_base64(bytes: &[u8]) -> String {
4343

4444
/// Converts a Variant to JSON and writes it to the provided `Write`
4545
///
46-
/// This function writes JSON directly to any type that implements [`Write`](std::io::Write),
46+
/// This function writes JSON directly to any type that implements [`Write`],
4747
/// making it efficient for streaming or when you want to control the output destination.
4848
///
4949
/// # Arguments
@@ -829,9 +829,9 @@ mod tests {
829829
.run();
830830

831831
JsonTest {
832-
variant: Variant::Double(2.718281828459045),
832+
variant: Variant::Double(std::f64::consts::E),
833833
expected_json: "2.718281828459045",
834-
expected_value: serde_json::Number::from_f64(2.718281828459045)
834+
expected_value: serde_json::Number::from_f64(std::f64::consts::E)
835835
.map(Value::Number)
836836
.unwrap(),
837837
}

parquet-variant/src/variant.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ impl<'a> TryFrom<&'a str> for ShortString<'a> {
7676
}
7777
}
7878

79-
impl<'a> AsRef<str> for ShortString<'a> {
79+
impl AsRef<str> for ShortString<'_> {
8080
fn as_ref(&self) -> &str {
8181
self.0
8282
}
8383
}
8484

85-
impl<'a> Deref for ShortString<'a> {
85+
impl Deref for ShortString<'_> {
8686
type Target = str;
8787

8888
fn deref(&self) -> &Self::Target {

0 commit comments

Comments
 (0)