remove debug requirement that was used while debugging, add rustfmt file and gitignore for target
This commit is contained in:
parent
637aa5c266
commit
5c8fc8c5ee
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
target
|
16
Cargo.lock
generated
Normal file
16
Cargo.lock
generated
Normal file
@ -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",
|
||||
]
|
6
rustfmt.toml
Normal file
6
rustfmt.toml
Normal file
@ -0,0 +1,6 @@
|
||||
edition="2024"
|
||||
version = "Two"
|
||||
hard_tabs=true
|
||||
imports_granularity="Module"
|
||||
group_imports="StdExternalCrate"
|
||||
max_width=80
|
@ -18,7 +18,6 @@ along with range_bounds_map. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
use std::collections::BTreeMap;
|
||||
use std::fmt::Debug;
|
||||
use std::iter::once;
|
||||
use std::ops::Bound;
|
||||
|
||||
@ -33,8 +32,8 @@ pub struct RangeBoundsMap<I, K, V> {
|
||||
|
||||
impl<I, K, V> RangeBoundsMap<I, K, V>
|
||||
where
|
||||
K: RangeBoundsExt<I> + Debug,
|
||||
I: Ord + Clone + Debug,
|
||||
K: RangeBoundsExt<I>,
|
||||
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
|
||||
|
@ -26,8 +26,8 @@ pub struct RangeBoundsSet<I, K> {
|
||||
|
||||
impl<I, K> RangeBoundsSet<I, K>
|
||||
where
|
||||
K: RangeBoundsExt<I> + std::fmt::Debug,
|
||||
I: Ord + Clone + std::fmt::Debug,
|
||||
K: RangeBoundsExt<I>,
|
||||
I: Ord + Clone,
|
||||
{
|
||||
pub fn new() -> Self {
|
||||
RangeBoundsSet {
|
||||
|
Loading…
x
Reference in New Issue
Block a user