Skip to content

Commit a1ce865

Browse files
committed
feat(rustdoc-json-types): mark simple enums as copy
Fixes [rust-lang/rustdoc-types#26](rust-lang/rustdoc-types#26)
1 parent 880d565 commit a1ce865

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rustdoc-json-types/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ pub struct Id(pub u32);
320320
/// The fundamental kind of an item. Unlike [`ItemEnum`], this does not carry any aditional info.
321321
///
322322
/// Part of [`ItemSummary`].
323-
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
323+
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
324324
#[serde(rename_all = "snake_case")]
325325
pub enum ItemKind {
326326
/// A module declaration, e.g. `mod foo;` or `mod foo {}`
@@ -904,7 +904,7 @@ pub enum GenericBound {
904904
}
905905

906906
/// A set of modifiers applied to a trait.
907-
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
907+
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
908908
#[serde(rename_all = "snake_case")]
909909
pub enum TraitBoundModifier {
910910
/// Marks the absence of a modifier.
@@ -1205,7 +1205,7 @@ pub struct ProcMacro {
12051205
}
12061206

12071207
/// The way a [`ProcMacro`] is declared to be used.
1208-
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
1208+
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
12091209
#[serde(rename_all = "snake_case")]
12101210
pub enum MacroKind {
12111211
/// A bang macro `foo!()`.

0 commit comments

Comments
 (0)