mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 13:44:15 +00:00
Merge pull request #31 from programble/fix/stdin-lock
Fix main_interactive without linefeed
This commit is contained in:
commit
d5aaddd1d6
1 changed files with 2 additions and 1 deletions
|
@ -274,7 +274,8 @@ fn main_interactive() {
|
|||
// noninteractive version
|
||||
#[cfg(not(feature = "linefeed"))]
|
||||
fn main_interactive() {
|
||||
main_noninteractive(stdin(), true);
|
||||
let stdin = stdin();
|
||||
main_noninteractive(stdin.lock(), true);
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
Loading…
Reference in a new issue