Reformat use
declarations.
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
This commit is contained in:
parent
118f9350c5
commit
84ac80f192
1865 changed files with 8367 additions and 9199 deletions
|
@ -8,8 +8,7 @@ pub struct System;
|
|||
#[cfg(any(windows, unix, target_os = "redox"))]
|
||||
mod realloc_fallback {
|
||||
use core::alloc::{GlobalAlloc, Layout};
|
||||
use core::cmp;
|
||||
use core::ptr;
|
||||
use core::{cmp, ptr};
|
||||
impl super::System {
|
||||
pub(crate) unsafe fn realloc_fallback(
|
||||
&self,
|
||||
|
@ -34,6 +33,7 @@ mod platform {
|
|||
use core::alloc::{GlobalAlloc, Layout};
|
||||
use core::ffi::c_void;
|
||||
use core::ptr;
|
||||
|
||||
use System;
|
||||
extern "C" {
|
||||
fn posix_memalign(memptr: *mut *mut c_void, align: usize, size: usize) -> i32;
|
||||
|
@ -71,6 +71,7 @@ mod platform {
|
|||
#[allow(nonstandard_style)]
|
||||
mod platform {
|
||||
use core::alloc::{GlobalAlloc, Layout};
|
||||
|
||||
use System;
|
||||
type LPVOID = *mut u8;
|
||||
type HANDLE = LPVOID;
|
||||
|
|
|
@ -2,10 +2,8 @@
|
|||
|
||||
#![feature(arbitrary_self_types, unsize, coerce_unsized, dispatch_from_dyn)]
|
||||
|
||||
use std::{
|
||||
marker::Unsize,
|
||||
ops::{CoerceUnsized, Deref, DispatchFromDyn},
|
||||
};
|
||||
use std::marker::Unsize;
|
||||
use std::ops::{CoerceUnsized, Deref, DispatchFromDyn};
|
||||
|
||||
struct Ptr<T: ?Sized>(Box<T>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue