Fix is_valid
on Windows (#1217)
* git add -u * fix cfg * pub --------- Co-authored-by: Andrea Fioraldi <andreafioraldi@gmail.com>
This commit is contained in:
parent
96e24d1c8b
commit
fc23782dc3
@ -474,13 +474,8 @@ impl InProcessExecutorHandlerData {
|
|||||||
r
|
r
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(all(windows, feature = "std"))]
|
#[cfg(any(unix, feature = "std"))]
|
||||||
pub(crate) fn is_valid(&self) -> bool {
|
pub fn is_valid(&self) -> bool {
|
||||||
self.in_target == 1
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(unix)]
|
|
||||||
pub(crate) fn is_valid(&self) -> bool {
|
|
||||||
!self.current_input_ptr.is_null()
|
!self.current_input_ptr.is_null()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user