Simplify extraction of builder fields
This commit is contained in:
parent
07350f201c
commit
ee46e7cd1a
|
@ -26,12 +26,8 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
fn new(points: &[P], builder: Builder) -> (Self, Vec<PointId>) {
|
fn new(points: &[P], builder: Builder) -> (Self, Vec<PointId>) {
|
||||||
let Builder {
|
let ef_search = builder.ef_search.unwrap_or(100);
|
||||||
ef_search,
|
let ef_construction = builder.ef_construction.unwrap_or(100);
|
||||||
ef_construction,
|
|
||||||
} = builder;
|
|
||||||
let ef_search = ef_search.unwrap_or(100);
|
|
||||||
let ef_construction = ef_construction.unwrap_or(100);
|
|
||||||
|
|
||||||
if points.is_empty() {
|
if points.is_empty() {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue