Skip to content

Commit

Permalink
Fixes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Stoeoef committed Nov 19, 2023
1 parent 7011c4a commit bed652c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 19 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ autobenches = false
bench = false

[features]
default = [ "std" ]
default = ["std"]
std = []

[dependencies]
smallvec = "1"
robust = "1.1.0"
num-traits = "0.2"
hashbrown = "0.14.2"
hashbrown = "0.14.2"

[dependencies.serde]
package = "serde"
optional = true
version = "1"
version = "1.0.0"
default-features = false
features = [ "derive", "alloc" ]
features = ["derive", "alloc"]

[workspace]
members = ["delaunay_compare"]
Expand Down
14 changes: 0 additions & 14 deletions src/cdt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,6 @@ impl<UE> AsMut<UE> for CdtEdge<UE> {
}
}

impl<'a, V, DE, UE, F> UndirectedEdgeHandle<'a, V, DE, CdtEdge<UE>, F> {
/// Returns `true` if this edge is a constraint edge.
pub fn is_constraint_edge(&self) -> bool {
self.data().is_constraint_edge()
}
}

impl<'a, V, DE, UE, F> DirectedEdgeHandle<'a, V, DE, CdtEdge<UE>, F> {
/// Returns `true` if this edge is a constraint edge.
pub fn is_constraint_edge(&self) -> bool {
self.as_undirected().data().is_constraint_edge()
}
}

/// A two dimensional
/// [constrained Delaunay triangulation](https://en.wikipedia.org/wiki/Constrained_Delaunay_triangulation).
///
Expand Down
4 changes: 3 additions & 1 deletion src/delaunay_core/refinement.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use std::collections::{HashMap, HashSet, VecDeque};

use alloc::vec::Vec;

use num_traits::Float;

use crate::{
Expand Down Expand Up @@ -940,7 +942,7 @@ mod test {
#[test]
fn test_zero_angle_limit_dbg() {
let limit = AngleLimit::from_deg(0.0);
let debug_string = format!("{:?}", limit);
let debug_string = alloc::format!("{:?}", limit);
assert_eq!(debug_string, "AngleLimit { angle limit (deg): 0.0 }");
}

Expand Down
3 changes: 3 additions & 0 deletions src/delaunay_core/refinement_fuzz_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ use crate::{
TriangulationExt,
};

use alloc::vec;
use alloc::vec::Vec;

fn refinement_parameters() -> RefinementParameters<f64> {
RefinementParameters::new().with_max_additional_vertices(1000)
}
Expand Down

0 comments on commit bed652c

Please sign in to comment.