Skip to content

Commit 522d177

Browse files
author
Jan Riemer
committed
docs: add another derive for Copyable struct
This adds another `derive` for a `Copy`able struct, so that we are consistent with `derive` annotations.
1 parent 56daf63 commit 522d177

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/marker.rs

+1
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ pub trait StructuralEq {
291291
///
292292
/// ```
293293
/// # #[allow(dead_code)]
294+
/// #[derive(Copy, Clone)]
294295
/// struct Point {
295296
/// x: i32,
296297
/// y: i32,

0 commit comments

Comments
 (0)