Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

test(server): pass trusted-host slices without vec! to satisfy clippy

James Damd28c1c027af9
diff --git a/src-tauri/src/core/server/tests.rs b/src-tauri/src/core/server/tests.rs
index d2dccec8b..38a87f783 100644
--- a/src-tauri/src/core/server/tests.rs
+++ b/src-tauri/src/core/server/tests.rs
@@ -1089,7 +1089,7 @@ mod server_tests {
hyper::Response::builder(),
"127.0.0.1:1337",
origin,
- &vec![vec![entry.to_string()]],
+ &[vec![entry.to_string()]],
)
.body(http_body_util::Empty::<hyper::body::Bytes>::new())
.unwrap();
@@ -1099,7 +1099,7 @@ mod server_tests {
hyper::Response::builder(),
"127.0.0.1:1337",
origin,
- &vec![vec![]],
+ &[vec![]],
)
.body(http_body_util::Empty::<hyper::body::Bytes>::new())
.unwrap();