ci: fix nightly warnings

This commit is contained in:
David Hewitt 2021-03-06 09:42:50 +00:00
parent fa50c11ac4
commit e19c083a81
2 changed files with 2 additions and 1 deletions

View File

@ -353,7 +353,7 @@ macro_rules! py_run_impl {
// panic before flushing. This is where this hack comes into place
$py.run("import sys; sys.stderr.flush()", None, None)
.unwrap();
panic!($code.to_string())
panic!("{}", $code)
}
}};
}

View File

@ -34,6 +34,7 @@ struct ClassWithDocs {
/// Write-only property field
#[pyo3(set)]
#[allow(dead_code)] // Rust detects field is never read
writeonly: i32,
}