File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,6 @@ borrowed_box = "allow"
172
172
derived_hash_with_manual_eq = " allow"
173
173
forget_non_drop = " allow"
174
174
needless_doctest_main = " allow"
175
- non_canonical_clone_impl = " allow"
176
175
non_canonical_partial_ord_impl = " allow"
177
176
too_many_arguments = " allow"
178
177
type_complexity = " allow"
Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ impl<N> FileItemTreeId<N> {
372
372
373
373
impl < N > Clone for FileItemTreeId < N > {
374
374
fn clone ( & self ) -> Self {
375
- Self ( self . 0 )
375
+ * self
376
376
}
377
377
}
378
378
impl < N > Copy for FileItemTreeId < N > { }
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ pub struct ItemLoc<N: ItemTreeModItemNode> {
219
219
220
220
impl < N : ItemTreeModItemNode > Clone for ItemLoc < N > {
221
221
fn clone ( & self ) -> Self {
222
- Self { container : self . container , id : self . id }
222
+ * self
223
223
}
224
224
}
225
225
@@ -248,7 +248,7 @@ pub struct AssocItemLoc<N: ItemTreeModItemNode> {
248
248
249
249
impl < N : ItemTreeModItemNode > Clone for AssocItemLoc < N > {
250
250
fn clone ( & self ) -> Self {
251
- Self { container : self . container , id : self . id }
251
+ * self
252
252
}
253
253
}
254
254
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ impl<N: AstNode + std::fmt::Debug> std::fmt::Debug for AstPtr<N> {
36
36
impl < N : AstNode > Copy for AstPtr < N > { }
37
37
impl < N : AstNode > Clone for AstPtr < N > {
38
38
fn clone ( & self ) -> AstPtr < N > {
39
- AstPtr { raw : self . raw , _ty : PhantomData }
39
+ * self
40
40
}
41
41
}
42
42
You can’t perform that action at this time.
0 commit comments