diff options
Diffstat (limited to 'src/liblog/lib.rs')
| -rw-r--r-- | src/liblog/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liblog/lib.rs b/src/liblog/lib.rs index 3ff7ee390f1..7d635b80dad 100644 --- a/src/liblog/lib.rs +++ b/src/liblog/lib.rs @@ -125,7 +125,7 @@ use std::io; use std::local_data; use std::os; use std::rt; -use std::vec; +use std::slice; use std::vec_ng::Vec; use sync::one::{Once, ONCE_INIT}; @@ -247,7 +247,7 @@ pub fn mod_enabled(level: u32, module: &str) -> bool { } fn enabled(level: u32, module: &str, - iter: vec::Items<directive::LogDirective>) -> bool { + iter: slice::Items<directive::LogDirective>) -> bool { // Search for the longest match, the vector is assumed to be pre-sorted. for directive in iter.rev() { match directive.name { |
