fix lint warnings
This commit is contained in:
@@ -4685,7 +4685,7 @@ impl Machine {
|
||||
|
||||
let http_listener = HttpListener {
|
||||
incoming: rx,
|
||||
warp_shutdown: warp_shutdown,
|
||||
warp_shutdown,
|
||||
};
|
||||
let http_listener: TypedArenaPtr<HttpListener> =
|
||||
arena_alloc!(http_listener, &mut self.machine_st.arena);
|
||||
@@ -4750,7 +4750,7 @@ impl Machine {
|
||||
Err(_) => unreachable!(),
|
||||
}
|
||||
|
||||
return false;
|
||||
false
|
||||
}
|
||||
|
||||
#[cfg(feature = "http")]
|
||||
|
||||
@@ -32,8 +32,6 @@ impl Expectable for &[u8] {
|
||||
/// Tests whether the file can be successfully loaded
|
||||
/// and produces the expected output during it
|
||||
pub(crate) fn load_module_test<T: Expectable>(file: &str, expected: T) {
|
||||
use scryer_prolog::MachineBuilder;
|
||||
|
||||
let mut wam = MachineBuilder::default().build();
|
||||
expected.assert_eq(wam.test_load_file(file).as_slice());
|
||||
}
|
||||
@@ -43,8 +41,6 @@ pub(crate) fn load_module_test_with_input<T: Expectable>(
|
||||
input: impl Into<Cow<'static, str>>,
|
||||
expected: T,
|
||||
) {
|
||||
use scryer_prolog::MachineBuilder;
|
||||
|
||||
let mut wam = MachineBuilder::default()
|
||||
.with_streams(StreamConfig::in_memory().with_user_input(InputStreamConfig::string(input)))
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user