update to 2024 edition
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 5 Jul 2025 19:31:08 +0000 (12:31 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 5 Jul 2025 19:31:29 +0000 (12:31 -0700)
rust/pspp/Cargo.toml
rust/pspp/src/locale_charset.rs

index 731595c284e57f7f144bcfc5b0654d945f121d7e..f0a454af7d6f931be53f0d40163f2ffb38321926 100644 (file)
@@ -1,7 +1,7 @@
 [package]
 name = "pspp"
 version = "1.0.0"
-edition = "2021"
+edition = "2024"
 authors = [ "Ben Pfaff", "John Darrington" ]
 
 [dependencies]
index f3ab0c1841f37a994a4fc247fc9756da5ce91901..26856ef803a44f2e113d4dfb16c0fd7de39cc097 100644 (file)
@@ -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() })
         }
     }