From b6268ff95cfc7b3619902263eb9b57385ee2173c Mon Sep 17 00:00:00 2001 From: Ivan Chebykin Date: Wed, 22 Mar 2017 16:35:32 +0300 Subject: [PATCH 1/2] Fix missing use statement --- ahcid/src/ahci/hba.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/ahcid/src/ahci/hba.rs b/ahcid/src/ahci/hba.rs index 4792cbb8d3..5832042a5d 100644 --- a/ahcid/src/ahci/hba.rs +++ b/ahcid/src/ahci/hba.rs @@ -1,6 +1,7 @@ use std::mem::size_of; use std::ops::DerefMut; use std::{ptr, u32}; +use std::thread; use syscall::io::{Dma, Io, Mmio}; use syscall::error::{Error, Result, EIO}; From 4c93b53de0e0fbda46f115b8fe68ad73020f1eda Mon Sep 17 00:00:00 2001 From: Ivan Chebykin Date: Wed, 22 Mar 2017 17:01:49 +0300 Subject: [PATCH 2/2] Combine thread use statement with previous --- ahcid/src/ahci/hba.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ahcid/src/ahci/hba.rs b/ahcid/src/ahci/hba.rs index 5832042a5d..53f54d77dc 100644 --- a/ahcid/src/ahci/hba.rs +++ b/ahcid/src/ahci/hba.rs @@ -1,7 +1,6 @@ use std::mem::size_of; use std::ops::DerefMut; -use std::{ptr, u32}; -use std::thread; +use std::{ptr, u32, thread}; use syscall::io::{Dma, Io, Mmio}; use syscall::error::{Error, Result, EIO};