mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-01-21 20:48:34 +01:00
updated to 0.2.1
This commit is contained in:
commit
ea236f7e54
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -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",
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user