Skip to content

Commit

Permalink
impl WIthLifetime for Option<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Nov 24, 2024
1 parent 5f81bc2 commit 373c9ec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions merde_core/src/with_lifetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ impl<'s> WithLifetime<'s> for () {
type Lifetimed = ();
}

impl<'s, T> WithLifetime<'s> for Option<T>
where
T: WithLifetime<'s>,
{
type Lifetimed = Option<T::Lifetimed>;
}

impl<'s, T> WithLifetime<'s> for Vec<T>
where
T: WithLifetime<'s>,
Expand Down

0 comments on commit 373c9ec

Please sign in to comment.