Skip to content

Commit

Permalink
The final set of changes
Browse files Browse the repository at this point in the history
Signed-off-by: Hunar Roop Kahlon <hunar.roop@gmail.com>
  • Loading branch information
kinggoesgaming committed Mar 30, 2019
1 parent 6be1083 commit 5afe3bd
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion benches/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![feature(test)]


#[cfg(feature = "slog")]
pub mod slog_support;
6 changes: 4 additions & 2 deletions benches/slog_support/parse_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ extern crate test;
#[bench]
#[cfg(feature = "slog")]
pub fn bench_log_discard_kv(b: &mut test::Bencher) {
let u1 = uuid::Uuid::parse_str("F9168C5E-CEB2-4FAB-B6BF-329BF39FA1E4").unwrap();
let root = slog::Logger::root(::slog::Drain::fuse(::slog::Discard), slog::o!());
let u1 =
uuid::Uuid::parse_str("F9168C5E-CEB2-4FAB-B6BF-329BF39FA1E4").unwrap();
let root =
slog::Logger::root(::slog::Drain::fuse(::slog::Discard), slog::o!());

b.iter(|| {
#[cfg(feature = "slog")]
Expand Down
2 changes: 1 addition & 1 deletion src/adapter/compact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ where

#[cfg(test)]
mod tests {

use serde_test;

#[test]
Expand Down
4 changes: 1 addition & 3 deletions src/core_support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,9 @@ impl Default for Uuid {

#[cfg(test)]
mod tests {
use crate::tests::std;

use crate::tests::*;
use crate::prelude::*;
use crate::test_util;
use crate::tests::*;

macro_rules! check {
($buf:ident, $format:expr, $target:expr, $len:expr, $cond:expr) => {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1008,9 +1008,9 @@ impl Uuid {
mod tests {
pub extern crate std;

pub use std::prelude::v1::*;
use super::test_util;
use crate::prelude::*;
pub use std::prelude::v1::*;

#[test]
fn test_nil() {
Expand Down

0 comments on commit 5afe3bd

Please sign in to comment.