Skip to content

Commit

Permalink
Organize imports into one block
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Feb 28, 2023
1 parent c9d017f commit f508080
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@

extern crate alloc;

use crate::sealed::{Private, Sealed};

#[macro_use]
mod macros;

Expand All @@ -111,6 +109,11 @@ mod sealed {
pub struct Private;
}

use crate::sealed::{Private, Sealed};
use alloc::boxed::Box;
use alloc::rc::Rc;
use alloc::sync::Arc;

/// This trait is implemented by any type that implements [`std::clone::Clone`].
///
/// [`std::clone::Clone`]: https://doc.rust-lang.org/std/clone/trait.Clone.html
Expand All @@ -120,10 +123,6 @@ pub trait DynClone: Sealed {
fn __clone_box(&self, _: Private) -> *mut ();
}

use alloc::boxed::Box;
use alloc::rc::Rc;
use alloc::sync::Arc;

/// `&T` —▸ `T`
pub fn clone<T>(t: &T) -> T
where
Expand Down

0 comments on commit f508080

Please sign in to comment.