feat(rustdoc-json-types): mark simple enums as copy
Fixes [rust-lang/rustdoc-types#26](https://github.com/rust-lang/rustdoc-types/issues/26)
This commit is contained in:
parent
bfab34af4c
commit
f047591652
1 changed files with 3 additions and 3 deletions
|
@ -308,7 +308,7 @@ pub struct Id(pub u32);
|
|||
/// The fundamental kind of an item. Unlike [`ItemEnum`], this does not carry any aditional info.
|
||||
///
|
||||
/// Part of [`ItemSummary`].
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum ItemKind {
|
||||
/// A module declaration, e.g. `mod foo;` or `mod foo {}`
|
||||
|
@ -892,7 +892,7 @@ pub enum GenericBound {
|
|||
}
|
||||
|
||||
/// A set of modifiers applied to a trait.
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum TraitBoundModifier {
|
||||
/// Marks the absence of a modifier.
|
||||
|
@ -1193,7 +1193,7 @@ pub struct ProcMacro {
|
|||
}
|
||||
|
||||
/// The way a [`ProcMacro`] is declared to be used.
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum MacroKind {
|
||||
/// A bang macro `foo!()`.
|
||||
|
|
Loading…
Add table
Reference in a new issue