Update register.rs

This commit is contained in:
Shunsuke Shibayama 2022-12-24 17:46:16 +09:00
parent 2fe6fc1dc5
commit 34ea4be7ed

View file

@ -1343,9 +1343,10 @@ impl Context {
match Command::new("pylyzer")
.arg("--dump-decl")
.arg(path.to_str().unwrap())
.output()
.spawn()
.and_then(|mut child| child.wait())
{
Ok(out) if out.status.success() => {
Ok(status) if status.success() => {
if let Some(path) =
Self::resolve_decl_path(&self.cfg, Path::new(&__name__[..]))
{