mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
fix top level def
This commit is contained in:
parent
851f472167
commit
e83cb0d027
6 changed files with 31 additions and 28 deletions
|
@ -239,10 +239,10 @@ impl Progress {
|
|||
Self::from_consumed(before - after)
|
||||
}
|
||||
pub fn from_consumed(chars_consumed: usize) -> Self {
|
||||
Self::from_bool(chars_consumed != 0)
|
||||
Self::progress_when(chars_consumed != 0)
|
||||
}
|
||||
|
||||
pub fn from_bool(made_progress: bool) -> Self {
|
||||
pub fn progress_when(made_progress: bool) -> Self {
|
||||
if made_progress {
|
||||
Progress::MadeProgress
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue