Skip to content

Commit

Permalink
Merge pull request #176 from amab8901/patch-1
Browse files Browse the repository at this point in the history
Functions `a` and `b` are unused. Silence the lint.
  • Loading branch information
nrc authored Oct 5, 2024
2 parents 38e7316 + 541196d commit c54cc31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/04_pinning/01_chapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -553,10 +553,12 @@ note: required by a bound in `std::pin::Pin::<&'a mut T>::get_mut`
> # this.b = self_ptr;
> # }
> #
> # #[allow(unused)]
> # fn a<'a>(self: Pin<&'a Self>) -> &'a str {
> # &self.get_ref().a
> # }
> #
> # #[allow(unused)]
> # fn b<'a>(self: Pin<&'a Self>) -> &'a String {
> # assert!(!self.b.is_null(), "Test::b called without Test::init being called first");
> # unsafe { &*(self.b) }
Expand Down

0 comments on commit c54cc31

Please sign in to comment.