Skip to content

Commit

Permalink
Fix doclink, fix DefaultHasher pre-1.76
Browse files Browse the repository at this point in the history
  • Loading branch information
acl-cqc committed Sep 2, 2024
1 parent 6237fea commit 8cbf062
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion hugr-passes/src/const_fold2/value_handle.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::hash::{DefaultHasher, Hash, Hasher};
use std::collections::hash_map::DefaultHasher; // Moves into std::hash in Rust 1.76.
use std::hash::{Hash, Hasher};
use std::sync::Arc;

use hugr_core::ops::constant::{CustomConst, Sum};
Expand Down
2 changes: 1 addition & 1 deletion hugr-passes/src/dataflow/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl<V: AbstractValue, C: DFContext<V>> Default for Machine<V, C> {
}

/// Usage:
/// 1. [Self::new()]
/// 1. Get a new instance via [Self::default()]
/// 2. Zero or more [Self::propolutate_out_wires] with initial values
/// 3. Exactly one [Self::run] to do the analysis
/// 4. Results then available via [Self::read_out_wire_partial_value] and [Self::read_out_wire_value]
Expand Down

0 comments on commit 8cbf062

Please sign in to comment.