Skip to content

Commit 04b8dba

Browse files
committed
fix(deep_causality_uncertain): Removed unused depenendencies.
Signed-off-by: Marvin Hansen <[email protected]>
1 parent 12ffb4b commit 04b8dba

File tree

4 files changed

+0
-27
lines changed

4 files changed

+0
-27
lines changed

Cargo.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deep_causality_uncertain/Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ exclude = ["*.bazel", "*/*.bazel", "*.bazel.*", "BUILD", "BUILD.bazel", "MODULE
1212

1313

1414
[dependencies]
15-
ultragraph = { path = "../ultragraph" }
1615
rand = "0.9"
1716
rand_distr = "0.5"
18-
rayon = { version = "1.11", optional = true }
1917

2018
[lib]
2119
test = true
@@ -28,10 +26,6 @@ path = "examples/gps/gps_navigation.rs"
2826
name = "sensor_processing"
2927
path = "examples/sensor/sensor_processing.rs"
3028

31-
[features]
32-
default = []
33-
parallel = ["dep:rayon"]
34-
3529
[package.metadata.docs.rs]
3630
all-features = true
3731

deep_causality_uncertain/src/errors/uncertain_error.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ impl fmt::Display for UncertainError {
4545
}
4646
}
4747

48-
impl From<ultragraph::GraphError> for UncertainError {
49-
fn from(err: ultragraph::GraphError) -> Self {
50-
UncertainError::GraphError(err.to_string())
51-
}
52-
}
53-
5448
impl std::error::Error for UncertainError {}
5549

5650
// Allow easy conversion from rand_distr errors into our custom error type.

deep_causality_uncertain/tests/errors/uncertain_error_tests.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ use rand_distr::{BernoulliError, NormalError};
1010
// For testing From impl
1111
use rusty_fork::rusty_fork_test;
1212
use std::error::Error;
13-
// For the Error trait methods
14-
use ultragraph::GraphError;
1513

1614
rusty_fork_test! {
1715
#[test]
@@ -75,17 +73,6 @@ rusty_fork_test! {
7573
assert!(err.source().is_none());
7674
}
7775

78-
#[test]
79-
fn test_from_ultragraph_error() {
80-
let ug_err = GraphError::NodeNotFound(5);
81-
let err: UncertainError = ug_err.into(); // Use into() for From conversion
82-
assert_eq!(
83-
err.to_string(),
84-
"Graph construction error: Node with index 5 not found; it may be out of bounds or have been removed."
85-
);
86-
assert!(err.source().is_none());
87-
}
88-
8976
#[test]
9077
fn test_from_uniform_error() {
9178
let err = UniformError::EmptyRange;

0 commit comments

Comments
 (0)