Skip to content

Fix ellipsis inclusive range pattern. "..." is no longer supported.#10

Open
oherrala wants to merge 1 commit into
sfackler:masterfrom
oherrala:master
Open

Fix ellipsis inclusive range pattern. "..." is no longer supported.#10
oherrala wants to merge 1 commit into
sfackler:masterfrom
oherrala:master

Conversation

@oherrala

Copy link
Copy Markdown

This fixes warning:

warning: `...` range patterns are deprecated
  --> /Users/oherrala/.cargo/registry/src/github.com-1ecc6299db9ec823/shell-escape-0.1.5/src/lib.rs:95:16
   |
95 |             'a'...'z' | 'A'...'Z' | '0'...'9' | '-' | '_' | '=' | '/' | ',' | '.' | '+' => false,
   |                ^^^ help: use `..=` for an inclusive range
   |
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
   = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
   = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant