Skip to content

Commit

Permalink
Remove unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnherfst committed Nov 22, 2024
1 parent 5229266 commit 023ea87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polars-ops/src/chunked_array/strings/namespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ pub trait StringNameSpaceImpl: AsString {
/// Check if strings starts with a substring
fn starts_with(&self, sub: &str) -> BooleanChunked {
let ca = self.as_string();
let iter = ca.downcast_iter().map(|arr| unsafe {
let iter = ca.downcast_iter().map(|arr| {
let out: <BooleanType as PolarsDataType>::Array = arr
.views()
.iter()
Expand Down

0 comments on commit 023ea87

Please sign in to comment.