Make Lifetime struct field public
This commit is contained in:
parent
f5e0d0cc18
commit
e14eebb6bb
|
@ -748,7 +748,7 @@ impl GenericBound {
|
|||
}
|
||||
|
||||
#[derive(Clone, PartialEq, Eq, Debug, Hash)]
|
||||
pub struct Lifetime(String);
|
||||
pub struct Lifetime(pub String);
|
||||
|
||||
impl Lifetime {
|
||||
pub fn get_ref<'a>(&'a self) -> &'a str {
|
||||
|
|
Loading…
Reference in New Issue