hide another #[allow] directive from a docs example

This is a repeat for Rc of e0e64a8930,
which cleaned up the same thing for Arc.
This commit is contained in:
Jack O'Connor 2022-04-08 10:29:00 -07:00
parent 2d5a21f63c
commit c1023e9e5f
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ impl<T> Rc<T> {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![allow(dead_code)] /// # #![allow(dead_code)]
/// use std::rc::{Rc, Weak}; /// use std::rc::{Rc, Weak};
/// ///
/// struct Gadget { /// struct Gadget {