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]] [[package]]
name = "kalk" name = "kalk"
version = "0.2.0" version = "0.2.1"
dependencies = [ dependencies = [
"lazy_static", "lazy_static",
"phf", "phf",
@ -103,7 +103,7 @@ dependencies = [
[[package]] [[package]]
name = "kalk_cli" name = "kalk_cli"
version = "0.2.0" version = "0.2.1"
dependencies = [ dependencies = [
"ansi_term", "ansi_term",
"kalk", "kalk",

View File

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

View File

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

View File

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