Skip to content

Commit c54cc31

Browse files
authored
Merge pull request #176 from amab8901/patch-1
Functions `a` and `b` are unused. Silence the lint.
2 parents 38e7316 + 541196d commit c54cc31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/04_pinning/01_chapter.md

+2
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,12 @@ note: required by a bound in `std::pin::Pin::<&'a mut T>::get_mut`
553553
> # this.b = self_ptr;
554554
> # }
555555
> #
556+
> # #[allow(unused)]
556557
> # fn a<'a>(self: Pin<&'a Self>) -> &'a str {
557558
> # &self.get_ref().a
558559
> # }
559560
> #
561+
> # #[allow(unused)]
560562
> # fn b<'a>(self: Pin<&'a Self>) -> &'a String {
561563
> # assert!(!self.b.is_null(), "Test::b called without Test::init being called first");
562564
> # unsafe { &*(self.b) }

0 commit comments

Comments
 (0)