diff --git a/CHANGELOG.md b/CHANGELOG.md index f68ef87..d2b0091 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# Version 2.12.4 : Fix bug +Fix the bug where the calculated vectors for plotting appeared when plotting + # Version 2.12.3 : Piping Piping has been added to the calculator diff --git a/Cargo.lock b/Cargo.lock index b58fc4f..95fdd35 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -221,7 +221,7 @@ checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" [[package]] name = "mini-calc" -version = "2.12.3" +version = "2.12.4" dependencies = [ "ansi_term", "atty", diff --git a/Cargo.toml b/Cargo.toml index 731de68..0d3a889 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mini-calc" -version = "2.12.3" +version = "2.12.4" license = "GPL-3.0-or-later" description = "A fully-featured minimalistic configurable rust calculator" homepage = "https://calc.nwa2coco.fr" diff --git a/src/configuration/loader.rs b/src/configuration/loader.rs index 69dc740..6886346 100644 --- a/src/configuration/loader.rs +++ b/src/configuration/loader.rs @@ -131,7 +131,7 @@ pub fn load_color(string: String) -> Color { pub fn replace_variable(str: String) -> String { str.replace("%author%", "Charlotte Thomas") - .replace("%version%", "v2.12.3") + .replace("%version%", "v2.12.4") .to_string() } diff --git a/src/interpreting/stdlib.rs b/src/interpreting/stdlib.rs index f8c0134..d03e874 100644 --- a/src/interpreting/stdlib.rs +++ b/src/interpreting/stdlib.rs @@ -1952,7 +1952,6 @@ pub fn plot_fn( _ => return Parameters::Null, } } - println!("{:?}/{:?}", &x, &y); let mut f: Figure = Figure::new(); let _ = match mode.to_lowercase().as_str() { "marks" => f diff --git a/src/main.rs b/src/main.rs index e1ffbb8..f415edd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -262,7 +262,7 @@ fn handle_config(line: &str, config: Config) -> (String, Option) { fn main() { let mut args: Args = env::args(); - let version: String = "v2.12.3".to_string(); + let version: String = "v2.12.4".to_string(); if args.len() > 1 || !atty::is(Stream::Stdin) { let mut a = vec![]; @@ -291,7 +291,7 @@ fn main() { if arg_final == "-v" || arg_final == "--version" { println!("Calc {version}"); exit(0); - } + } let lexed = lex(arg_final); let mut parser = init_calc_parser(&lexed); diff --git a/src/utils/plot_utils.rs b/src/utils/plot_utils.rs index 9c712a1..c53e7a8 100644 --- a/src/utils/plot_utils.rs +++ b/src/utils/plot_utils.rs @@ -40,7 +40,6 @@ pub fn computes_lines( }); z.for_each(|(x, y)| { - println!("x: {x}, y: {y}"); if x < 100 && y < 30 { bitmap[y][x] = '+'; }