Skip to content

Commit

Permalink
Make Lifetime struct field public
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Dec 4, 2019
1 parent f5e0d0c commit e14eebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/clean/types.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit e14eebb

Please sign in to comment.