From 7a8c5a7f4b4bb6f71c8bcb49ca2ace0239c32a46 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 15 Jun 2021 10:16:54 -0300 Subject: [PATCH] Bump crossterm from 0.19.0 to 0.20.0 (#564) * Bump crossterm from 0.19.0 to 0.20.0 Bumps [crossterm](https://github.com/crossterm-rs/crossterm) from 0.19.0 to 0.20.0. - [Release notes](https://github.com/crossterm-rs/crossterm/releases) - [Changelog](https://github.com/crossterm-rs/crossterm/blob/master/CHANGELOG.md) - [Commits](https://github.com/crossterm-rs/crossterm/compare/0.19...0.20) --- updated-dependencies: - dependency-name: crossterm dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Jun-15 10h13: writer.rs, preview_var.rs, preview.rs Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Denis Isidoro --- Cargo.lock | 26 ++++++++++++++++++-------- Cargo.toml | 2 +- src/handler/preview.rs | 1 + src/handler/preview_var.rs | 1 + src/writer.rs | 1 + 5 files changed, 22 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1737097..597c86b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -122,25 +122,25 @@ dependencies = [ [[package]] name = "crossterm" -version = "0.19.0" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c36c10130df424b2f3552fcc2ddcd9b28a27b1e54b358b45874f88d1ca6888c" +checksum = "c0ebde6a9dd5e331cd6c6f48253254d117642c31653baa475e394657c59c1f7d" dependencies = [ "bitflags", "crossterm_winapi", - "lazy_static", "libc", "mio", "parking_lot", "signal-hook", + "signal-hook-mio", "winapi", ] [[package]] name = "crossterm_winapi" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0da8964ace4d3e4a044fd027919b2237000b24315a37c916f61809f1ff2140b9" +checksum = "3a6966607622438301997d3dac0d2f6e9a90c68bb6bc1785ea98456ab93c0507" dependencies = [ "winapi", ] @@ -615,13 +615,23 @@ dependencies = [ [[package]] name = "signal-hook" -version = "0.1.17" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e31d442c16f047a671b5a71e2161d6e68814012b7f5379d269ebd915fac2729" +checksum = "470c5a6397076fae0094aaf06a08e6ba6f37acb77d3b1b91ea92b4d6c8650c39" +dependencies = [ + "libc", + "signal-hook-registry", +] + +[[package]] +name = "signal-hook-mio" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29fd5867f1c4f2c5be079aee7a2adf1152ebb04a4bc4d341f504b7dece607ed4" dependencies = [ "libc", "mio", - "signal-hook-registry", + "signal-hook", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 8168d7c..1b04bd0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ travis-ci = { repository = "denisidoro/navi", branch = "master" } [dependencies] regex = { version = "1.5.4", default-features = false, features = ["std", "unicode-perl"] } clap = "3.0.0-beta.2" -crossterm = "0.19.0" +crossterm = "0.20.0" lazy_static = "1.4.0" directories-next = "2.0.0" walkdir = "2.3.1" diff --git a/src/handler/preview.rs b/src/handler/preview.rs index 90f3bd8..1b3a801 100644 --- a/src/handler/preview.rs +++ b/src/handler/preview.rs @@ -2,6 +2,7 @@ use crate::config::CONFIG; use crate::ui; use crate::writer; use anyhow::Result; +use crossterm::style::Stylize; use std::process; fn extract_elements(argstr: &str) -> (&str, &str, &str) { diff --git a/src/handler/preview_var.rs b/src/handler/preview_var.rs index 02467fc..455ce39 100644 --- a/src/handler/preview_var.rs +++ b/src/handler/preview_var.rs @@ -4,6 +4,7 @@ use crate::finder; use crate::terminal::style::style; use crate::writer; use anyhow::Result; +use crossterm::style::Stylize; use std::collections::HashSet; use std::iter; use std::process; diff --git a/src/writer.rs b/src/writer.rs index e462f9c..163e2c3 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -1,6 +1,7 @@ use crate::config::CONFIG; use crate::structures::item::Item; use crate::ui; +use crossterm::style::Stylize; use regex::Regex; const NEWLINE_ESCAPE_CHAR: char = '\x15';