Skip to content

Commit

Permalink
added use std::option::Option; and 16 as default
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasMAhern committed Jun 19, 2024
1 parent 9931edb commit 3a01e4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions polars_hash/src/expressions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ use polars_core::datatypes::{
use pyo3_polars::derive::polars_expr;
use std::fmt::Write;
use std::{str, string};
use std::option::Option;
use wyhash::wyhash as real_wyhash;


pub fn blake3_hash_str(value: &str, output: &mut string::String) {
let hash = blake3::hash(value.as_bytes());
write!(output, "{}", hash).unwrap()
Expand Down
2 changes: 1 addition & 1 deletion polars_hash/src/geohashers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub fn geohash_encoder(
Some(len) => {
let base = match base {
Some(base) => base, // Use the provided base
None => 32, // Default to base 32
None => 16, // Default to base 16
};
Ok(Some(
encode(Coord { x: long, y: lat }, len as usize, base)
Expand Down

0 comments on commit 3a01e4f

Please sign in to comment.