updated to 0.2.1

This commit is contained in:
PaddiM8 2020-12-09 09:40:26 +01:00
commit ea236f7e54
4 changed files with 6 additions and 6 deletions

4
Cargo.lock generated
View File

@ -92,7 +92,7 @@ dependencies = [
[[package]]
name = "kalk"
version = "0.2.0"
version = "0.2.1"
dependencies = [
"lazy_static",
"phf",
@ -103,7 +103,7 @@ dependencies = [
[[package]]
name = "kalk_cli"
version = "0.2.0"
version = "0.2.1"
dependencies = [
"ansi_term",
"kalk",

View File

@ -1,6 +1,6 @@
[package]
name = "kalk"
version = "0.2.0"
version = "0.2.1"
authors = ["PaddiM8"]
edition = "2018"
readme = "README.md"

View File

@ -1,6 +1,6 @@
[package]
name = "kalk_cli"
version = "0.2.0"
version = "0.2.1"
authors = ["PaddiM8"]
edition = "2018"
readme = "../README.md"
@ -15,7 +15,7 @@ path = "src/main.rs"
name = "kalk"
[dependencies]
kalk = { path = "../kalk", version = "^0.2.0" }
kalk = { path = "../kalk", version = "^0.2.1" }
rustyline = "6.1.2"
ansi_term = "0.12"
regex = "1"

View File

@ -27,7 +27,7 @@ pub fn eval(parser: &mut parser::Context, input: &str) {
.chars()
.collect();
chars.insert(comma_pos, '.');
chars.into_iter().collect::<String>().to_string()
chars.into_iter().collect::<String>()
} else {
// Regular number
digits[..(exp as usize)].to_string()