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"
172172derived_hash_with_manual_eq = " allow"
173173forget_non_drop = " allow"
174174needless_doctest_main = " allow"
175- non_canonical_clone_impl = " allow"
176175non_canonical_partial_ord_impl = " allow"
177176too_many_arguments = " allow"
178177type_complexity = " allow"
Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ impl<N> FileItemTreeId<N> {
372372
373373impl < N > Clone for FileItemTreeId < N > {
374374 fn clone ( & self ) -> Self {
375- Self ( self . 0 )
375+ * self
376376 }
377377}
378378impl < N > Copy for FileItemTreeId < N > { }
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ pub struct ItemLoc<N: ItemTreeModItemNode> {
219219
220220impl < N : ItemTreeModItemNode > Clone for ItemLoc < N > {
221221 fn clone ( & self ) -> Self {
222- Self { container : self . container , id : self . id }
222+ * self
223223 }
224224}
225225
@@ -248,7 +248,7 @@ pub struct AssocItemLoc<N: ItemTreeModItemNode> {
248248
249249impl < N : ItemTreeModItemNode > Clone for AssocItemLoc < N > {
250250 fn clone ( & self ) -> Self {
251- Self { container : self . container , id : self . id }
251+ * self
252252 }
253253}
254254
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> {
3636impl < N : AstNode > Copy for AstPtr < N > { }
3737impl < N : AstNode > Clone for AstPtr < N > {
3838 fn clone ( & self ) -> AstPtr < N > {
39- AstPtr { raw : self . raw , _ty : PhantomData }
39+ * self
4040 }
4141}
4242
You can’t perform that action at this time.
0 commit comments