Skip to content

Commit

Permalink
bump version + remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
H4kor committed Dec 25, 2023
1 parent a064fc7 commit 4eb2ec7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
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 = "dungeon_planner"
version = "0.0.7"
version = "0.0.8"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 0 additions & 2 deletions src/observers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ macro_rules! txt_cmd {
// check if prev and prev_prev are same type as current
if let ($x(prev_id, _), $x(prev_prev_id, prev_prev_s)) = (prev_cmd, prev_prev_cmd) {
if prev_id == prev_prev_id && prev_id == $i {
// let dist = edit_distance::edit_distance(&$s, &prev_prev_s);
// simplified distance to keep computation cheap
let dist = ($s.len() as i64 - prev_prev_s.len() as i64).abs();
if dist < MAX_EDIT_DISTANCE {
Expand Down Expand Up @@ -162,7 +161,6 @@ macro_rules! txt_cmd_dungeon {

// check if prev and prev_prev are same type as current
if let ($x(_), $x(prev_prev_s)) = (prev_cmd, prev_prev_cmd) {
// let dist = edit_distance::edit_distance(&$s, &prev_prev_s);
// simplified distance to keep computation cheap
let dist = ($s.len() as i64 - prev_prev_s.len() as i64).abs();
if dist < MAX_EDIT_DISTANCE {
Expand Down

0 comments on commit 4eb2ec7

Please sign in to comment.