From 1c6cd90d595834dcb2c8ef17b339491910f78a1b Mon Sep 17 00:00:00 2001 From: Mark <> Date: Mon, 17 Jun 2024 18:33:22 +0200 Subject: [PATCH] fix read_line --- mers/Cargo.toml | 4 ++-- mers_lib/Cargo.toml | 2 +- mers_lib/src/program/configs/with_stdio.rs | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mers/Cargo.toml b/mers/Cargo.toml index 1a79a8c..3ef129b 100644 --- a/mers/Cargo.toml +++ b/mers/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mers" -version = "0.8.6" +version = "0.8.7" edition = "2021" license = "MIT OR Apache-2.0" description = "dynamically typed but type-checked programming language" @@ -11,7 +11,7 @@ repository = "https://github.com/Dummi26/mers" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -mers_lib = "0.8.6" +mers_lib = "0.8.7" # mers_lib = { path = "../mers_lib" } clap = { version = "4.3.19", features = ["derive"] } colored = "2.1.0" diff --git a/mers_lib/Cargo.toml b/mers_lib/Cargo.toml index 9546442..f146cf9 100755 --- a/mers_lib/Cargo.toml +++ b/mers_lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mers_lib" -version = "0.8.6" +version = "0.8.7" edition = "2021" license = "MIT OR Apache-2.0" description = "library to use the mers language in other projects" diff --git a/mers_lib/src/program/configs/with_stdio.rs b/mers_lib/src/program/configs/with_stdio.rs index 0fd2081..d84854f 100755 --- a/mers_lib/src/program/configs/with_stdio.rs +++ b/mers_lib/src/program/configs/with_stdio.rs @@ -28,10 +28,10 @@ impl Config { info_check: Arc::new(Mutex::new(CheckInfo::neverused())), out: Arc::new(|a, _i| { if a.is_zero_tuple() { - Ok(Type::newm(vec![Arc::new(data::tuple::TupleT(vec![ - Type::new(data::string::StringT), - Type::empty_tuple(), - ]))])) + Ok(Type::newm(vec![ + Arc::new(data::tuple::TupleT(vec![Type::new(data::string::StringT)])), + Arc::new(data::tuple::TupleT(vec![])), + ])) } else { Err(format!( "expected (), got {}",