]> git.lizzy.rs Git - rust.git/commitdiff
docs: add another `derive` for `Copy`able struct
authorJan Riemer <janriemer@tutanota.de>
Tue, 18 Aug 2020 16:40:19 +0000 (18:40 +0200)
committerJan Riemer <janriemer@tutanota.de>
Tue, 18 Aug 2020 16:40:19 +0000 (18:40 +0200)
This adds another `derive` for a `Copy`able struct, so that we are
consistent with `derive` annotations.

library/core/src/marker.rs

index f113f9392301aa391fb7e9a78f5a782e856392a6..9326aaf56847c577f59e2e86b299f9c67bf6082f 100644 (file)
@@ -291,6 +291,7 @@ pub trait StructuralEq {
 ///
 /// ```
 /// # #[allow(dead_code)]
+/// #[derive(Copy, Clone)]
 /// struct Point {
 ///    x: i32,
 ///    y: i32,