Update to the latest stable rustfmt, 0.4.2-stable (febbb36 2018-04-12).

This commit is contained in:
Dan Gohman
2018-05-29 10:37:38 -07:00
parent 7045c41418
commit a1fe0f82e1
45 changed files with 124 additions and 76 deletions

View File

@@ -1,9 +1,9 @@
//! A double-ended iterator over entity references and entities.
use EntityRef;
use std::iter::Enumerate;
use std::marker::PhantomData;
use std::slice;
use EntityRef;
/// Iterate over all keys in order.
pub struct Iter<'a, K: EntityRef, V>

View File

@@ -3,8 +3,8 @@
//! When `std::iter::Step` is stablized, `Keys` could be implemented as a wrapper around
//! `std::ops::Range`, but for now, we implment it manually.
use EntityRef;
use std::marker::PhantomData;
use EntityRef;
/// Iterate over all keys in order.
pub struct Keys<K: EntityRef> {

View File

@@ -34,9 +34,13 @@
#![cfg_attr(feature = "std", warn(unstable_features))]
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))]
#![cfg_attr(feature = "cargo-clippy", allow(new_without_default, new_without_default_derive))]
#![cfg_attr(feature = "cargo-clippy",
warn(float_arithmetic, mut_mut, nonminimal_bool, option_map_unwrap_or,
option_map_unwrap_or_else, print_stdout, unicode_not_nfc, use_self))]
#![cfg_attr(
feature = "cargo-clippy",
warn(
float_arithmetic, mut_mut, nonminimal_bool, option_map_unwrap_or, option_map_unwrap_or_else,
print_stdout, unicode_not_nfc, use_self
)
)]
// Turns on no_std and alloc features if std is not available.
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), feature(alloc))]

View File

@@ -1,9 +1,9 @@
//! Small lists of entity references.
use EntityRef;
use std::hash::{Hash, Hasher};
use std::marker::PhantomData;
use std::mem;
use std::vec::Vec;
use EntityRef;
/// A small list of entity references allocated from a pool.
///