Skip to content

Commit

Permalink
Remove dbg! from standard library
Browse files Browse the repository at this point in the history
  • Loading branch information
Kampfkarren committed Jan 19, 2020
1 parent 0c139e7 commit f64008c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions 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 selene-lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "selene-lib"
version = "0.5.1"
version = "0.5.2"
license = "MPL-2.0"
authors = ["Kampfkarren <[email protected]>"]
description = "A library for linting Lua code. You probably want selene instead."
Expand Down
2 changes: 1 addition & 1 deletion selene-lib/src/rules/standard_library.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ fn get_argument_type(expression: &ast::Expression) -> Option<PassedArgumentType>
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() {
Expand Down
4 changes: 2 additions & 2 deletions selene/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "selene"
version = "0.5.1"
version = "0.5.2"
license = "MPL-2.0"
authors = ["Kampfkarren <[email protected]>"]
description = "A blazing-fast modern Lua linter written in Rust"
Expand All @@ -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"
Expand Down

0 comments on commit f64008c

Please sign in to comment.