Checking telos-db v0.2.0 (D:\develop\TelosDB\src-backend)
error[E0382]: borrow of moved value: `clean_ext_path`
--> src\db.rs:34:27
|
10 | let clean_ext_path = extension_path
| -------------- move occurs because `clean_ext_path` has type `std::string::String`, which does not implement the `Copy` trait
...
15 | let static_ext_path: &'static str = Box::leak(clean_ext_path.into_boxed_str());
| ---------------- `clean_ext_path` moved due to this method call
...
34 | let ext_path_no_dll = clean_ext_path.trim_end_matches(".dll");
| ^^^^^^^^^^^^^^ value borrowed here after move
|
note: `std::string::String::into_boxed_str` takes ownership of the receiver `self`, which moves `clean_ext_path`
--> /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c\library\alloc\src\string.rs:2171:27
= note: borrow occurs due to deref coercion to `str`
help: you can `clone` the value and consume it, but this might not be your desired behavior
|
15 | let static_ext_path: &'static str = Box::leak(clean_ext_path.clone().into_boxed_str());
| ++++++++
warning: variable does not need to be mutable
--> src\lib.rs:380:9
|
380 | let mut model_path = base_dir.join("models").join("embeddinggemma-300m-q4_0.gguf");
| ----^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
For more information about this error, try `rustc --explain E0382`.
warning: `telos-db` (lib) generated 1 warning
error: could not compile `telos-db` (lib) due to 1 previous error; 1 warning emitted