Skip to content
Myr

Implement Default for Chain to be an empty chain

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent ca2b8b9 · Browse files · 1 file+10 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+10 added−0 removed

  • other:+10 added−0 removed

1 file+10 added−0 removed

modified:src/chain.rs+10 added
73 unmodified lines
74 Buffered { rest } => rest.len(),75 }76 }77}7879impl Default for Chain<'_> {80 fn default() -> Self {81 Chain {82 state: ChainState::Buffered {83 rest: Vec::new().into_iter(),84 },85 }86 }87}