From 15cab63ac6acf784091d5dcacb71b067a81c6222 Mon Sep 17 00:00:00 2001 From: Bartosz Sokorski Date: Wed, 30 Oct 2024 01:44:43 +0100 Subject: [PATCH] Fix Rust linting error --- rust/Cargo.lock | 2 +- rust/src/parsing.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index bcfe643d..1e20ee1b 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -4,7 +4,7 @@ version = 3 [[package]] name = "_pendulum" -version = "3.0.0-beta-1" +version = "3.0.0" dependencies = [ "mimalloc", "pyo3", diff --git a/rust/src/parsing.rs b/rust/src/parsing.rs index 757a3e3b..9cae0709 100644 --- a/rust/src/parsing.rs +++ b/rust/src/parsing.rs @@ -27,6 +27,7 @@ pub struct ParsedDateTime { pub second: u32, pub microsecond: u32, pub offset: Option, + #[allow(dead_code)] pub has_offset: bool, pub tzname: Option, pub has_date: bool,