Skip to content

Commit 5031204

Browse files
committed
Clippy fix
1 parent 4aef502 commit 5031204

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

fsevent-sys/src/core_foundation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ extern "C" {
148148

149149
pub unsafe fn str_path_to_cfstring_ref(source: &str, err: &mut CFErrorRef) -> CFStringRef {
150150
let c_path = CString::new(source).unwrap();
151-
let c_len = libc::strlen(c_path.as_ptr());
151+
let c_len = c_path.as_bytes().len();
152152
let mut url = CFURLCreateFromFileSystemRepresentation(
153153
kCFAllocatorDefault,
154154
c_path.as_ptr(),

fsevent-sys/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![cfg(target_os = "macos")]
2-
#![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))]
32

43
pub mod core_foundation;
54
mod fsevent;

0 commit comments

Comments
 (0)