Skip to content

Commit

Permalink
bump to 2.12.4
Browse files Browse the repository at this point in the history
fix bug see #changelog.md
  • Loading branch information
vanilla-extracts committed Apr 22, 2024
1 parent f642f9f commit 36c2fc0
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/configuration/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down
1 change: 0 additions & 1 deletion src/interpreting/stdlib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ fn handle_config(line: &str, config: Config) -> (String, Option<Config>) {
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![];

Expand Down Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion src/utils/plot_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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] = '+';
}
Expand Down

0 comments on commit 36c2fc0

Please sign in to comment.