Skip to content

Commit

Permalink
fix compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandros committed Oct 31, 2024
1 parent c0fd96d commit a085e86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ferrunix-core/src/cycle_detection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ impl DependencyValidator {
context: &mut VisitorContext,
) {
{
for (_type_id, cb) in visitors.iter() {
for cb in visitors.values() {
// To avoid a dead lock due to other visitors needing to be called, we pass in the
// visitors hashmap.
(cb.0)(self, visitors, context);
Expand Down
2 changes: 1 addition & 1 deletion ferrunix/tests/it/manual.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fn singletons_with_deps() {
registry
.with_deps::<_, (Transient<u8>, Singleton<i8>)>()
.singleton(|(i, j)| {
let i = i.get();
let i: u8 = i.get();
let j = j.get();
i32::from(i) + i32::from(*j)
});
Expand Down

0 comments on commit a085e86

Please sign in to comment.