Skip to content

Commit

Permalink
Remove flume from iroh-docs, iroh-cli and iroh as a direct dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rklaehn authored and Kasey Huizinga committed Aug 1, 2024
1 parent 6ef111d commit b9d7ace
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions iroh-blobs/src/util/progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,11 +488,11 @@ impl<T> FlumeProgressSender<T> {

fn get_as_ptr<T>(value: &T) -> Option<usize> {
use std::mem;
if mem::size_of::<T>() == std::mem::size_of::<usize>() && mem::align_of::<T>() == mem::align_of::<usize>() {
if mem::size_of::<T>() == std::mem::size_of::<usize>()
&& mem::align_of::<T>() == mem::align_of::<usize>()
{
// Safe only if size and alignment requirements are met
unsafe {
Some(mem::transmute_copy(value))
}
unsafe { Some(mem::transmute_copy(value)) }
} else {
None
}
Expand Down
1 change: 0 additions & 1 deletion iroh-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ crossterm = "0.27.0"
derive_more = { version = "1.0.0-beta.1", features = ["display"] }
dialoguer = { version = "0.11.0", default-features = false }
dirs-next = "2.0.0"
flume = "0.11.0"
futures-buffered = "0.2.4"
futures-lite = "2.3"
futures-util = { version = "0.3.30", features = ["futures-sink"] }
Expand Down
1 change: 0 additions & 1 deletion iroh/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ async-channel = "2.3.1"
bao-tree = { version = "0.13", features = ["tokio_fsm"], default-features = false }
bytes = "1"
derive_more = { version = "1.0.0-beta.6", features = ["debug", "display", "from", "try_into", "from_str"] }
flume = "0.11"
futures-buffered = "0.2.4"
futures-lite = "2.3"
futures-util = "0.3"
Expand Down

0 comments on commit b9d7ace

Please sign in to comment.