on master help sign in
Address new lint on 1.57
commit01f7a312d0bdf53184fb579bf41c619230449cce authorBlaž Hrastnik <blaz@mxxn.io> dateFri 3 Dec 2021, 10:02 (5 years ago) parenta45df12
1 file changed+1−11
helix-core/src/transaction.rs+1−11
helix-core/src/transaction.rs+1−11
@@ -22,7 +22,7 @@ pub enum Assoc {
2222}
2323
2424// ChangeSpec = Change | ChangeSet | Vec<Change>
25−#[derive(Debug, Clone, PartialEq, Eq)]
25+#[derive(Debug, Default, Clone, PartialEq, Eq)]
2626pub struct ChangeSet {
2727 pub(crate) changes: Vec<Operation>,
2828 /// The required document length. Will refuse to apply changes unless it matches.
@@ -30,16 +30,6 @@ pub struct ChangeSet {
3030 len_after: usize,
3131}
3232
33−impl Default for ChangeSet {
34− fn default() -> Self {
35− Self {
36− changes: Vec::new(),
37− len: 0,
38− len_after: 0,
39− }
40− }
41−}
42−
4333impl ChangeSet {
4434 pub fn with_capacity(capacity: usize) -> Self {
4535 Self {