Merge pull request #1472 from davidhewitt/nightly-warnings
ci: fix nightly warnings
This commit is contained in:
commit
d75d109aee
|
@ -363,7 +363,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)
|
||||
}
|
||||
}};
|
||||
}
|
||||
|
|
|
@ -34,6 +34,7 @@ struct ClassWithDocs {
|
|||
|
||||
/// Write-only property field
|
||||
#[pyo3(set)]
|
||||
#[allow(dead_code)] // Rust detects field is never read
|
||||
writeonly: i32,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue