From fc6bc6320a88f8ea7c7cafa4fb35f48bd480b737 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 5 Jul 2025 12:31:08 -0700 Subject: [PATCH] update to 2024 edition --- rust/pspp/Cargo.toml | 2 +- rust/pspp/src/locale_charset.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/pspp/Cargo.toml b/rust/pspp/Cargo.toml index 731595c284..f0a454af7d 100644 --- a/rust/pspp/Cargo.toml +++ b/rust/pspp/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pspp" version = "1.0.0" -edition = "2021" +edition = "2024" authors = [ "Ben Pfaff", "John Darrington" ] [dependencies] diff --git a/rust/pspp/src/locale_charset.rs b/rust/pspp/src/locale_charset.rs index f3ab0c1841..26856ef803 100644 --- a/rust/pspp/src/locale_charset.rs +++ b/rust/pspp/src/locale_charset.rs @@ -231,7 +231,7 @@ mod inner { if s.is_null() { None } else { - Some(CStr::from_ptr(s).to_string_lossy().into()) + Some(unsafe { CStr::from_ptr(s).to_string_lossy().into() }) } } -- 2.30.2