diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eb5a316 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..254a6c9 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,16 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "either" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797" + +[[package]] +name = "range_bounds_map" +version = "0.0.1" +dependencies = [ + "either", +] diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..f71dad7 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,6 @@ +edition="2024" +version = "Two" +hard_tabs=true +imports_granularity="Module" +group_imports="StdExternalCrate" +max_width=80 diff --git a/src/range_bounds_map.rs b/src/range_bounds_map.rs index 2f3a8ea..38c93d8 100644 --- a/src/range_bounds_map.rs +++ b/src/range_bounds_map.rs @@ -18,7 +18,6 @@ along with range_bounds_map. If not, see . */ use std::collections::BTreeMap; -use std::fmt::Debug; use std::iter::once; use std::ops::Bound; @@ -33,8 +32,8 @@ pub struct RangeBoundsMap { impl RangeBoundsMap where - K: RangeBoundsExt + Debug, - I: Ord + Clone + Debug, + K: RangeBoundsExt, + I: Ord + Clone, { pub fn new() -> Self { RangeBoundsMap { @@ -77,8 +76,6 @@ where let end = StartBound::from(search_range_bounds.end_bound().cloned()) .as_end_bound(); - dbg!(&start); - dbg!(&end); let start_range_bounds = ( //Included is lossless regarding meta-bounds searches //which is what we want diff --git a/src/range_bounds_set.rs b/src/range_bounds_set.rs index cb8a40a..b88d8da 100644 --- a/src/range_bounds_set.rs +++ b/src/range_bounds_set.rs @@ -26,8 +26,8 @@ pub struct RangeBoundsSet { impl RangeBoundsSet where - K: RangeBoundsExt + std::fmt::Debug, - I: Ord + Clone + std::fmt::Debug, + K: RangeBoundsExt, + I: Ord + Clone, { pub fn new() -> Self { RangeBoundsSet {