feat: show errors from cargo metadata and initial cargo check in the status bar

closes #3155
This commit is contained in:
Aleksey Kladov 2021-04-06 18:08:05 +03:00
parent 9ec5e6e4fd
commit de33702784
3 changed files with 63 additions and 13 deletions

View file

@ -178,6 +178,7 @@ where
start..start + len
}
#[repr(transparent)]
pub struct JodChild(pub process::Child);
impl ops::Deref for JodChild {
@ -200,6 +201,13 @@ impl Drop for JodChild {
}
}
impl JodChild {
pub fn into_inner(self) -> process::Child {
// SAFETY: repr transparent
unsafe { std::mem::transmute::<JodChild, process::Child>(self) }
}
}
#[cfg(test)]
mod tests {
use super::*;