File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ mod tests {
314
314
315
315
fn _check_all_strings_of_len ( len : usize , chunk : & mut Vec < u8 > ) {
316
316
if len == 0 {
317
- if let Ok ( s) = std :: str:: from_utf8 ( chunk) {
317
+ if let Ok ( s) = core :: str:: from_utf8 ( chunk) {
318
318
let old_matches: Vec < _ > = STRIP_ANSI_RE . find_iter ( s) . collect ( ) ;
319
319
let new_matches: Vec < _ > = Matches :: new ( s) . collect ( ) ;
320
320
assert_eq ! ( old_matches, new_matches) ;
Original file line number Diff line number Diff line change 1
1
use core:: { fmt:: Display , mem, str} ;
2
+ #[ cfg( target_os = "macos" ) ]
3
+ use core:: ptr;
2
4
use std:: env;
3
5
use std:: fs;
4
6
use std:: io:: { self , BufRead , BufReader } ;
@@ -163,7 +165,7 @@ fn select_fd(fd: RawFd, timeout: i32) -> io::Result<bool> {
163
165
164
166
let mut timeout_val;
165
167
let timeout = if timeout < 0 {
166
- std :: ptr:: null_mut ( )
168
+ ptr:: null_mut ( )
167
169
} else {
168
170
timeout_val = libc:: timeval {
169
171
tv_sec : ( timeout / 1000 ) as _ ,
@@ -177,8 +179,8 @@ fn select_fd(fd: RawFd, timeout: i32) -> io::Result<bool> {
177
179
let ret = libc:: select (
178
180
fd + 1 ,
179
181
& mut read_fd_set,
180
- std :: ptr:: null_mut ( ) ,
181
- std :: ptr:: null_mut ( ) ,
182
+ ptr:: null_mut ( ) ,
183
+ ptr:: null_mut ( ) ,
182
184
timeout,
183
185
) ;
184
186
if ret < 0 {
You can’t perform that action at this time.
0 commit comments