radix transform: fix misnamed variable
the _ caused the variable to be optimized away, which is not desired
This commit is contained in:
parent
ca819aeaf4
commit
d9654ab292
1 changed files with 4 additions and 2 deletions
|
@ -80,7 +80,7 @@ async fn main() {
|
||||||
|
|
||||||
let mut args = std::env::args();
|
let mut args = std::env::args();
|
||||||
args.next().expect("Arg $0 missing!");
|
args.next().expect("Arg $0 missing!");
|
||||||
|
|
||||||
let src_radix_str = args.next().expect("Arg $1 required!");
|
let src_radix_str = args.next().expect("Arg $1 required!");
|
||||||
let dst_radix_str = args.next().expect("Arg $2 required!");
|
let dst_radix_str = args.next().expect("Arg $2 required!");
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ async fn main() {
|
||||||
);
|
);
|
||||||
|
|
||||||
// output dst digits
|
// output dst digits
|
||||||
let _writer = {
|
let writer = {
|
||||||
use std::{
|
use std::{
|
||||||
os::unix::io::FromRawFd
|
os::unix::io::FromRawFd
|
||||||
};
|
};
|
||||||
|
@ -119,5 +119,7 @@ async fn main() {
|
||||||
|
|
||||||
src_digits.from_json(unsafe { async_std::fs::File::from_raw_fd(0) }).await;
|
src_digits.from_json(unsafe { async_std::fs::File::from_raw_fd(0) }).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
drop(writer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue