Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

removed redundant PodAccount::new method #7928

Merged
merged 2 commits into from
Feb 19, 2018
Merged

Conversation

debris
Copy link
Collaborator

@debris debris commented Feb 17, 2018

it's also more readable

@debris debris added A0-pleasereview 🤓 Pull request needs code review. A2-insubstantial 👶 Pull request requires no code review (e.g., a sub-repository hash update). M4-core ⛓ Core client code / Rust. labels Feb 17, 2018
@5chdn 5chdn added this to the 1.10 milestone Feb 17, 2018
Copy link
Collaborator

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -89,7 +89,12 @@ mod test {

#[test]
fn create_delete() {
let a = PodState::from(map![ 1.into() => PodAccount::new(69.into(), 0.into(), vec![], map![]) ]);
let a = PodState::from(map![ 1.into() => PodAccount {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be even simpler if there was Default for PodAccount (possibly with #[cfg(test)])

@tomusdrw tomusdrw added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Feb 19, 2018
@debris debris merged commit 4bda6ef into master Feb 19, 2018
@debris debris deleted the removed_redundant_method branch February 19, 2018 09:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A2-insubstantial 👶 Pull request requires no code review (e.g., a sub-repository hash update). A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants