Shift import into test module to avoid warning.
This commit is contained in:
@@ -5,7 +5,6 @@ extern crate num;
|
|||||||
extern crate quickcheck;
|
extern crate quickcheck;
|
||||||
|
|
||||||
use chrono::{DateTime,TimeZone,Utc};
|
use chrono::{DateTime,TimeZone,Utc};
|
||||||
use chrono::offset::LocalResult;
|
|
||||||
use num::{BigInt,BigUint,FromPrimitive,One,ToPrimitive,Zero};
|
use num::{BigInt,BigUint,FromPrimitive,One,ToPrimitive,Zero};
|
||||||
use std::iter::FromIterator;
|
use std::iter::FromIterator;
|
||||||
use std::mem::size_of;
|
use std::mem::size_of;
|
||||||
@@ -694,6 +693,7 @@ pub fn der_encode<T: ToASN1>(v: &T) -> Result<Vec<u8>,T::Error>
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
use chrono::offset::LocalResult;
|
||||||
use quickcheck::{Arbitrary,Gen};
|
use quickcheck::{Arbitrary,Gen};
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::Read;
|
use std::io::Read;
|
||||||
|
|||||||
Reference in New Issue
Block a user