Skip to content

Commit

Permalink
Merge pull request #1831 from tonytonyjan/patch-3
Browse files Browse the repository at this point in the history
Replace `T: 'a + Messenger` with `T: Messenger`
  • Loading branch information
carols10cents authored Apr 15, 2019
2 parents c231bf7 + 5245c58 commit 2797e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch15-05-interior-mutability.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ pub trait Messenger {
fn send(&self, msg: &str);
}

pub struct LimitTracker<'a, T: 'a + Messenger> {
pub struct LimitTracker<'a, T: Messenger> {
messenger: &'a T,
value: usize,
max: usize,
Expand Down

0 comments on commit 2797e27

Please sign in to comment.