ports/x11/sirula/files/patch-osstrtools
Mikael Urankar 5ed4c6d33a x11/sirula: Unbreak build
Fix typo:
error: expected one of `(`, `.`, `::`, `;`, `?`, `}`, or an operator, found `:`
   --> /build/cargo-vendor-dir/osstrtools-0.2.2/src/lib.rs:754:42
    |
754 |         unsafe { (bytes as *const _).cast:() }
    |                                          ^ expected one of 7 possible tokens

error: could not compile `osstrtools` (lib) due to previous error

Typo was added in 1179a979db

Approved by:	portmgr (build fix blanket)
2024-01-01 19:08:35 +01:00

11 lines
389 B
Text

--- cargo-crates/osstrtools-0.2.2/src/lib.rs.orig 2024-01-01 16:19:06 UTC
+++ cargo-crates/osstrtools-0.2.2/src/lib.rs
@@ -751,7 +751,7 @@ impl WinOsStr for OsStr {
fn as_bytes<'s>(&'s self) -> &'s [u8] {
// This should be fine in any case, as OsStr is just a &[u8]
- unsafe { (bytes as *const _).cast:() }
+ unsafe { (bytes as *const _).cast() }
}
}