You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Compilation from source with feature_capable,apply,luau,foreach,to,self_update,polars,lite,datapusher_plus optional features produces cannot assign twice to immutable variable `record_count` error @ src/cmd/sortcheck.rs:126.
To Reproduce
Steps to reproduce the behavior:
➜ git clone https://github.com/dathere/qsv.git && cd qsv
~...~
➜ cargo build --release --locked --bin qsv --features feature_capable,apply,luau,foreach,to,self_update,polars,lite,datapusher_plus
Updating git repository `https://github.com/pola-rs/polars`
Downloaded time-macros v0.2.19
Downloaded time v0.3.37
~...~
Compiling polars-mem-engine v0.44.2 (https://github.com/pola-rs/polars?rev=d86e44b#d86e44b9)
Compiling polars-sql v0.44.2 (https://github.com/pola-rs/polars?rev=d86e44b#d86e44b9)
~...~
error[E0384]: cannot assign twice to immutable variable `record_count`
--> src/cmd/sortcheck.rs:126:9
|
115 | / record_count = if show_progress {
116 | | let count = util::count_rows(&rconfig)?;
117 | | util::prep_progress(&progress, count);
118 | | count
... |
121 | | 0
122 | | };
| |_________- first assignment to `record_count`
...
126 | record_count = 0;
| ^^^^^^^^^^^^^^^^ cannot assign twice to immutable variable
|
help: consider making this binding mutable
|
105 | let mut record_count;
| +++
For more information about this error, try `rustc --explain E0384`.
warning: `qsv` (bin "qsv") generated 3 warnings
error: could not compile `qsv` (bin "qsv") due to 1 previous error; 3 warnings emitted
➜
Expected behavior
Compilation should be finished successfully.
Desktop:
OS: Linux Mint 21.2
qsv Version 1.0.0 (master branch)
Rust: rustc 1.83.0 (90b35a623 2024-11-26)
The text was updated successfully, but these errors were encountered:
vitali2y
added a commit
to vitali2y/qsv
that referenced
this issue
Dec 3, 2024
Describe the bug
Compilation from source with
feature_capable,apply,luau,foreach,to,self_update,polars,lite,datapusher_plus
optional features producescannot assign twice to immutable variable `record_count`
error @src/cmd/sortcheck.rs:126
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Compilation should be finished successfully.
Desktop:
master
branch)The text was updated successfully, but these errors were encountered: