Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle structuring and import edge cases revealed by other versions
Browse files Browse the repository at this point in the history
ZackPierce committed Apr 25, 2018
1 parent 36d93c4 commit e6ff370
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/arbitrary/_std/char.rs
Original file line number Diff line number Diff line change
@@ -17,6 +17,12 @@ use strategy::*;
use strategy::statics::static_map;
use arbitrary::*;

#[cfg(all(feature = "alloc", not(feature="std")))]
use alloc::vec::Vec;
#[allow(unused_imports)]
#[cfg(feature = "std")]
use std::vec::Vec;

macro_rules! impl_wrap_char {
($type: ty, $mapper: expr) => {
arbitrary!($type, SMapped<char, Self>;
4 changes: 2 additions & 2 deletions src/test_runner/mod.rs
Original file line number Diff line number Diff line change
@@ -222,8 +222,8 @@ impl TestRunner {
let persisted_failure_seeds: Vec<[u32; 4]> = {
let config = &self.config;
let source_file = config.source_file;
match &config.failure_persistence {
Some(f) => f.load_persisted_failures(source_file),
match config.failure_persistence {
Some(ref f) => f.load_persisted_failures(source_file),
None => Vec::new()
}
};

0 comments on commit e6ff370

Please sign in to comment.