mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
refactor(derive): Make Sp copyable
This commit is contained in:
parent
ebe181acc7
commit
c56277c084
2 changed files with 3 additions and 3 deletions
|
@ -949,11 +949,11 @@ impl Item {
|
|||
}
|
||||
|
||||
pub fn casing(&self) -> Sp<CasingStyle> {
|
||||
self.casing.clone()
|
||||
self.casing
|
||||
}
|
||||
|
||||
pub fn env_casing(&self) -> Sp<CasingStyle> {
|
||||
self.env_casing.clone()
|
||||
self.env_casing
|
||||
}
|
||||
|
||||
pub fn has_explicit_methods(&self) -> bool {
|
||||
|
|
|
@ -5,7 +5,7 @@ use syn::LitStr;
|
|||
use std::ops::{Deref, DerefMut};
|
||||
|
||||
/// An entity with a span attached.
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct Sp<T> {
|
||||
val: T,
|
||||
span: Span,
|
||||
|
|
Loading…
Reference in a new issue