This commit is contained in:
Mark Thom
2019-11-21 16:26:13 -04:00
5 changed files with 76 additions and 16 deletions

View File

@@ -1302,11 +1302,7 @@ impl MachineState {
let result = {
let mut rand = RANDOM_STATE.borrow_mut();
if rand.bits(1) == 0 {
true
} else {
false
}
rand.bits(1) == 0
};
self.fail = result;

View File

@@ -1,8 +1,11 @@
extern crate dirs;
extern crate ordered_float;
extern crate prolog_parser;
#[cfg(feature = "rug")]
extern crate rug;
extern crate rustyline;
#[cfg(feature = "num-rug-adapter")]
extern crate num_rug_adapter as rug;
extern crate rustyline;
#[macro_use]
mod macros;