diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b9b983d..a62a8073 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## Unreleased +## [0.5.2] - 2020-01-19 +### Fixed +- Fixed debug output for the standard library. + ## [0.5.1] - 2020-01-19 ### Added - Added the `utf8` library to the Roblox standard library diff --git a/Cargo.lock b/Cargo.lock index 3ac5986c..a9adb6bc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1190,7 +1190,7 @@ dependencies = [ [[package]] name = "selene" -version = "0.5.1" +version = "0.5.2" dependencies = [ "atty 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)", "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1201,7 +1201,7 @@ dependencies = [ "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "num_cpus 1.10.1 (registry+https://github.com/rust-lang/crates.io-index)", "reqwest 0.9.22 (registry+https://github.com/rust-lang/crates.io-index)", - "selene-lib 0.5.1", + "selene-lib 0.5.2", "serde 1.0.101 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)", "structopt 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1212,7 +1212,7 @@ dependencies = [ [[package]] name = "selene-lib" -version = "0.5.1" +version = "0.5.2" dependencies = [ "codespan 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "codespan-reporting 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/selene-lib/Cargo.toml b/selene-lib/Cargo.toml index 7d7fed6e..77c44916 100644 --- a/selene-lib/Cargo.toml +++ b/selene-lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "selene-lib" -version = "0.5.1" +version = "0.5.2" license = "MPL-2.0" authors = ["Kampfkarren "] description = "A library for linting Lua code. You probably want selene instead." diff --git a/selene-lib/src/rules/standard_library.rs b/selene-lib/src/rules/standard_library.rs index ce132437..38a0f9d3 100644 --- a/selene-lib/src/rules/standard_library.rs +++ b/selene-lib/src/rules/standard_library.rs @@ -150,7 +150,7 @@ fn get_argument_type(expression: &ast::Expression) -> Option ast::Value::Var(_) => None, }; - if let Some(rhs) = dbg!(rhs) { + if let Some(rhs) = rhs { // Nearly all of these will return wrong results if you have a non-idiomatic metatable // I intentionally omitted common metamethod re-typings, like __mul match rhs.bin_op() { diff --git a/selene/Cargo.toml b/selene/Cargo.toml index 557baf8a..b9fb2329 100644 --- a/selene/Cargo.toml +++ b/selene/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "selene" -version = "0.5.1" +version = "0.5.2" license = "MPL-2.0" authors = ["Kampfkarren "] description = "A blazing-fast modern Lua linter written in Rust" @@ -20,7 +20,7 @@ lazy_static = "1.4" glob = "0.3" num_cpus = "1.10" reqwest = { version = "0.9", optional = true } -selene-lib = { path = "../selene-lib", version = "0.5.1", default-features = false } +selene-lib = { path = "../selene-lib", version = "0.5.2", default-features = false } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" structopt = "0.3"