Merge pull request #1472 from davidhewitt/nightly-warnings

ci: fix nightly warnings
This commit is contained in:
David Hewitt 2021-03-06 23:10:48 +00:00 committed by GitHub
commit d75d109aee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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)
}
}};
}

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,
}