We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4aef502 commit 5031204Copy full SHA for 5031204
fsevent-sys/src/core_foundation.rs
@@ -148,7 +148,7 @@ extern "C" {
148
149
pub unsafe fn str_path_to_cfstring_ref(source: &str, err: &mut CFErrorRef) -> CFStringRef {
150
let c_path = CString::new(source).unwrap();
151
- let c_len = libc::strlen(c_path.as_ptr());
+ let c_len = c_path.as_bytes().len();
152
let mut url = CFURLCreateFromFileSystemRepresentation(
153
kCFAllocatorDefault,
154
c_path.as_ptr(),
fsevent-sys/src/lib.rs
@@ -1,5 +1,4 @@
1
#![cfg(target_os = "macos")]
2
-#![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))]
3
4
pub mod core_foundation;
5
mod fsevent;
0 commit comments