mirror of
https://github.com/Dummi26/mers.git
synced 2025-12-14 03:16:15 +01:00
fix readline
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "mers_lib"
|
||||
version = "0.8.7"
|
||||
version = "0.8.8"
|
||||
edition = "2021"
|
||||
license = "MIT OR Apache-2.0"
|
||||
description = "library to use the mers language in other projects"
|
||||
|
||||
@@ -41,11 +41,10 @@ impl Config {
|
||||
}
|
||||
}),
|
||||
run: Arc::new(|_a, _i| {
|
||||
let mut line = String::new();
|
||||
if std::io::stdin().read_line(&mut line).is_err() && line.is_empty() {
|
||||
Data::empty_tuple()
|
||||
} else {
|
||||
if let Some(Ok(line)) = std::io::stdin().lines().next() {
|
||||
Data::one_tuple(Data::new(data::string::String(line)))
|
||||
} else {
|
||||
Data::empty_tuple()
|
||||
}
|
||||
}),
|
||||
inner_statements: None,
|
||||
|
||||
Reference in New Issue
Block a user