Skip to content

Commit

Permalink
Implement Copy for syn::parse::Nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 16, 2024
1 parent 36a4122 commit 3f37543
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1354,6 +1354,18 @@ impl Parse for Nothing {
}
}

#[cfg(feature = "clone-impls")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))]
impl Clone for Nothing {
fn clone(&self) -> Self {
*self
}
}

#[cfg(feature = "clone-impls")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))]
impl Copy for Nothing {}

#[cfg(feature = "extra-traits")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))]
impl Debug for Nothing {
Expand Down

0 comments on commit 3f37543

Please sign in to comment.