mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
add use_self clippy lint (#8325)
This commit is contained in:
@ -42,7 +42,7 @@ pub struct BlockchainTestCase {
|
||||
|
||||
impl Case for BlockchainTestCase {
|
||||
fn load(path: &Path) -> Result<Self, Error> {
|
||||
Ok(BlockchainTestCase {
|
||||
Ok(Self {
|
||||
tests: {
|
||||
let s = fs::read_to_string(path)
|
||||
.map_err(|error| Error::Io { path: path.into(), error })?;
|
||||
|
||||
@ -66,7 +66,7 @@ pub struct CaseResult {
|
||||
impl CaseResult {
|
||||
/// Create a new test result.
|
||||
pub fn new(path: &Path, case: &impl Case, result: Result<(), Error>) -> Self {
|
||||
CaseResult { desc: case.description(), path: path.into(), result }
|
||||
Self { desc: case.description(), path: path.into(), result }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user