-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I'm getting the following error while compiling the latest commit d4be94b on master
error[E0716]: temporary value dropped while borrowed
--> src/main.rs:1070:26
|
1066 | / match m {
1067 | | "euclidean" => &euclidean_distance,
1068 | | "cosine" => &cosine_distance,
1069 | | "mahalanobis" => {
1070 | | &mahalanobis_distance_builder(library.library.config.base_config.m.to_owned())
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
1071 | | }
| | - temporary value is freed at the end of this statement
1072 | | "extended_isolation_forest" => forest_distance,
1073 | | _ => bail!("Please choose a distance name, between 'euclidean', 'cosine', 'mahalanobis' and 'extended_isolation_fores...
1074 | | }
| |_________________- borrow later used here
|
= note: consider using a `let` binding to create a longer lived value
For more information about this error, try `rustc --explain E0716`.
Any help is appreciated
Metadata
Metadata
Assignees
Labels
No labels