Skip to content

Commit 541196d

Browse files
authored
Functions a and b are unused. Silence the lint.
1 parent 81c03c2 commit 541196d

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
@@ -533,10 +533,12 @@ The type system prevents us from moving the data.
533533
> # this.b = self_ptr;
534534
> # }
535535
> #
536+
> # #[allow(unused)]
536537
> # fn a<'a>(self: Pin<&'a Self>) -> &'a str {
537538
> # &self.get_ref().a
538539
> # }
539540
> #
541+
> # #[allow(unused)]
540542
> # fn b<'a>(self: Pin<&'a Self>) -> &'a String {
541543
> # assert!(!self.b.is_null(), "Test::b called without Test::init being called first");
542544
> # unsafe { &*(self.b) }

0 commit comments

Comments
 (0)