Skip to content

Commit 83adf96

Browse files
authored
Minor: Derive Hash impls for CastOptions and FormatOptions (#4395)
1 parent 2462d36 commit 83adf96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arrow-cast/src/cast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ use num::cast::AsPrimitive;
5757
use num::{NumCast, ToPrimitive};
5858

5959
/// CastOptions provides a way to override the default cast behaviors
60-
#[derive(Debug, Clone, PartialEq, Eq)]
60+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
6161
pub struct CastOptions<'a> {
6262
/// how to handle cast failures, either return NULL (safe=true) or return ERR (safe=false)
6363
pub safe: bool,

arrow-cast/src/display.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type TimeFormat<'a> = Option<&'a str>;
3939
/// By default nulls are formatted as `""` and temporal types formatted
4040
/// according to RFC3339
4141
///
42-
#[derive(Debug, Clone, PartialEq, Eq)]
42+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
4343
pub struct FormatOptions<'a> {
4444
/// If set to `true` any formatting errors will be written to the output
4545
/// instead of being converted into a [`std::fmt::Error`]

0 commit comments

Comments
 (0)