mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 17:46:38 -04:00
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)
11 lines
389 B
Text
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() }
|
|
}
|
|
}
|
|
|