mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
cargo fix --edition
This commit is contained in:
parent
e1fcffb336
commit
a15d33a10e
197 changed files with 1414 additions and 1380 deletions
|
@ -26,7 +26,7 @@ pub use std::collections::hash_set::{IntoIter as SetIntoIter, Iter as SetIter};
|
|||
#[derive(Clone)]
|
||||
pub struct HashMap<K, V, S = RandomState>(StdMap<K, V, S>);
|
||||
|
||||
use FailedAllocationError;
|
||||
use crate::FailedAllocationError;
|
||||
|
||||
impl<K, V, S> Deref for HashMap<K, V, S> {
|
||||
type Target = StdMap<K, V, S>;
|
||||
|
|
|
@ -23,7 +23,7 @@ use std::ops::{Deref, Index};
|
|||
use super::table::BucketState::{Empty, Full};
|
||||
use super::table::{self, Bucket, EmptyBucket, FullBucket, FullBucketMut, RawTable, SafeHash};
|
||||
|
||||
use FailedAllocationError;
|
||||
use crate::FailedAllocationError;
|
||||
|
||||
const MIN_NONZERO_RAW_CAPACITY: usize = 32; // must be a power of two
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use alloc::{alloc, dealloc};
|
||||
use shim::{Shared, Unique};
|
||||
use crate::alloc::{alloc, dealloc};
|
||||
use crate::shim::{Shared, Unique};
|
||||
use std::cmp;
|
||||
use std::hash::{BuildHasher, Hash, Hasher};
|
||||
use std::marker;
|
||||
|
@ -18,7 +18,7 @@ use std::ops::{Deref, DerefMut};
|
|||
use std::ptr;
|
||||
|
||||
use self::BucketState::*;
|
||||
use FailedAllocationError;
|
||||
use crate::FailedAllocationError;
|
||||
|
||||
/// Integer type used for stored hash values.
|
||||
///
|
||||
|
@ -795,7 +795,7 @@ impl<K, V> RawTable<K, V> {
|
|||
let buffer = alloc(size, alignment);
|
||||
|
||||
if buffer.is_null() {
|
||||
use AllocationInfo;
|
||||
use crate::AllocationInfo;
|
||||
return Err(FailedAllocationError {
|
||||
reason: "out of memory when allocating RawTable",
|
||||
allocation_info: Some(AllocationInfo { size, alignment }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue