Skip to content

Commit

Permalink
refactor: don't use deprecated max_value() method (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoDog896 authored Jul 23, 2024
1 parent 2088598 commit 8a7d7f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions logos-codegen/src/graph/meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl Meta {

match &graph[this] {
Node::Fork(fork) => {
min_read = usize::max_value();
min_read = usize::MAX;
for (_, id) in fork.branches() {
let meta = self.first_pass(id, this, graph, stack);

Expand All @@ -101,7 +101,7 @@ impl Meta {
min_read = min(min_read, meta.min_read);
}
}
if min_read == usize::max_value() {
if min_read == usize::MAX {
min_read = 0;
}
}
Expand Down Expand Up @@ -144,7 +144,7 @@ impl Meta {

match &graph[id] {
Node::Fork(fork) => {
min_read = usize::max_value();
min_read = usize::MAX;
for (_, id) in fork.branches() {
let meta = &self[id];

Expand All @@ -154,7 +154,7 @@ impl Meta {
min_read = min(min_read, meta.min_read + 1);
}
}
if min_read == usize::max_value() {
if min_read == usize::MAX {
min_read = 0;
}
}
Expand Down

0 comments on commit 8a7d7f7

Please sign in to comment.