summaryrefslogtreecommitdiffstats
path: root/src/vp.rs
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-06-28 12:34:49 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-06-28 12:34:49 -0400
commit5aa0fd44535faa0ea1c0522b089e16d4b57e4e6f (patch)
tree1dcc37412195f0851dd86b836368bf809a35b4b4 /src/vp.rs
parent7ce5a60f5fc69f9c47cdae2762b14873d3e90733 (diff)
downloadacap-5aa0fd44535faa0ea1c0522b089e16d4b57e4e6f.tar.xz
Apply some rustfmt suggestions
Diffstat (limited to 'src/vp.rs')
-rw-r--r--src/vp.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vp.rs b/src/vp.rs
index 3d88937..85d3972 100644
--- a/src/vp.rs
+++ b/src/vp.rs
@@ -191,9 +191,7 @@ pub struct VpTree<T: Proximity> {
impl<T: Proximity> VpTree<T> {
/// Create an empty tree.
pub fn new() -> Self {
- Self {
- root: None,
- }
+ Self { root: None }
}
/// Create a balanced tree out of a sequence of items.