Remove useless use of question mark in create_state_entry
Instead of wrapping in Ok() and returning error with question
mark, the result can be returned directly.
Caught by clippy in rust version 1.51.0
@@ -350,11 +350,11 @@ where
.map_err(|err| ContractContextError::ProtocolBuildError(Box::new(err)))
})
.collect::<Result<Vec<StateEntryValue>, ContractContextError>>()?;
- Ok(StateEntryBuilder::new()
+ StateEntryBuilder::new()
.with_normalized_key(self.addresser.normalize(key.to_owned()))
.with_state_entry_values(state_values)
.build()
- .map_err(|err| ContractContextError::ProtocolBuildError(Box::new(err)))?)
+ .map_err(|err| ContractContextError::ProtocolBuildError(Box::new(err)))
}
}
