fix lint warnings

This commit is contained in:
Skgland
2026-06-05 20:45:18 +02:00
parent bb5a59170a
commit a236d00d7d
2 changed files with 2 additions and 6 deletions

View File

@@ -4685,7 +4685,7 @@ impl Machine {
let http_listener = HttpListener { let http_listener = HttpListener {
incoming: rx, incoming: rx,
warp_shutdown: warp_shutdown, warp_shutdown,
}; };
let http_listener: TypedArenaPtr<HttpListener> = let http_listener: TypedArenaPtr<HttpListener> =
arena_alloc!(http_listener, &mut self.machine_st.arena); arena_alloc!(http_listener, &mut self.machine_st.arena);
@@ -4750,7 +4750,7 @@ impl Machine {
Err(_) => unreachable!(), Err(_) => unreachable!(),
} }
return false; false
} }
#[cfg(feature = "http")] #[cfg(feature = "http")]

View File

@@ -32,8 +32,6 @@ impl Expectable for &[u8] {
/// Tests whether the file can be successfully loaded /// Tests whether the file can be successfully loaded
/// and produces the expected output during it /// and produces the expected output during it
pub(crate) fn load_module_test<T: Expectable>(file: &str, expected: T) { pub(crate) fn load_module_test<T: Expectable>(file: &str, expected: T) {
use scryer_prolog::MachineBuilder;
let mut wam = MachineBuilder::default().build(); let mut wam = MachineBuilder::default().build();
expected.assert_eq(wam.test_load_file(file).as_slice()); 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>>, input: impl Into<Cow<'static, str>>,
expected: T, expected: T,
) { ) {
use scryer_prolog::MachineBuilder;
let mut wam = MachineBuilder::default() let mut wam = MachineBuilder::default()
.with_streams(StreamConfig::in_memory().with_user_input(InputStreamConfig::string(input))) .with_streams(StreamConfig::in_memory().with_user_input(InputStreamConfig::string(input)))
.build(); .build();