Skip to content

Commit ebfe88d

Browse files
Atul9hawkw
authored andcommitted
Update crate for Rust 2018 using 'cargo fix --edition'
1 parent b68e530 commit ebfe88d

File tree

7 files changed

+13
-10
lines changed

7 files changed

+13
-10
lines changed

alarm-base/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ authors = ["Eliza Weisman <[email protected]>"]
55
description = """
66
Base types and API definitions shared across ALARM allocators.
77
"""
8+
edition = "2018"
89

910
[features]
1011
default = ["lend"]

intruder-alarm/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ authors = ["Eliza Weisman <[email protected]>"]
55
description = """
66
Intrusive collections for ALARM allocators.
77
"""
8+
edition = "2018"
89

910
[features]
1011
std = []

intruder-alarm/src/cursor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//
99
//! Cursors allowing bi-directional traversal of data structures.
1010
use core::{iter, ops};
11-
use OwningRef;
11+
use crate::OwningRef;
1212

1313
//-----------------------------------------------------------------------------
1414
// Traits

intruder-alarm/src/list/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
//! use intrusive lists in code that runs without the kernel memory allocator,
88
//! like the allocator implementation itself, since each list element manages
99
//! its own memory.
10-
use cursor::{self, Cursor as CursorTrait};
11-
use Link;
12-
use OwningRef;
13-
use UnsafeRef;
10+
use crate::cursor::{self, Cursor as CursorTrait};
11+
use crate::Link;
12+
use crate::OwningRef;
13+
use crate::UnsafeRef;
1414

1515
use core::{
1616
iter::{DoubleEndedIterator, Extend, FromIterator, Iterator},

intruder-alarm/src/list/tests.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ macro_rules! gen_cursor_tests {
7070
($list:tt, $node_ctor:path) => {
7171
mod cursor {
7272
use super::*;
73-
use ::CursorMut;
73+
use crate::CursorMut;
7474
use quickcheck::TestResult;
7575

7676
quickcheck! {
@@ -783,15 +783,15 @@ mod boxed {
783783

784784
mod unsafe_ref {
785785
use super::*;
786-
use UnsafeRef;
786+
use crate::UnsafeRef;
787787

788788
pub type UnsafeList = List<usize, NumberedNode, UnsafeRef<NumberedNode>>;
789789

790790
gen_cursor_tests! { UnsafeList, UnsafeRef::boxed }
791791

792792
mod push_node {
793793
use super::*;
794-
use UnsafeRef;
794+
use crate::UnsafeRef;
795795

796796
#[test]
797797
fn not_empty_after_first_push() {

intruder-alarm/src/stack/tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,13 @@ mod boxed {
222222

223223
mod unsafe_ref {
224224
use super::*;
225-
use UnsafeRef;
225+
use crate::UnsafeRef;
226226

227227
pub type UnsafeList = Stack<usize, NumberedNode, UnsafeRef<NumberedNode>>;
228228

229229
mod push_node {
230230
use super::*;
231-
use UnsafeRef;
231+
use crate::UnsafeRef;
232232

233233
#[test]
234234
fn not_empty_after_first_push() {

slabby/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ authors = ["Eliza Weisman <[email protected]>"]
55
description = """
66
Slab allocators composable on top of ALARM memory allocators.
77
"""
8+
edition = "2018"
89

910
[dependencies]

0 commit comments

Comments
 (0)