Skip to content

Commit

Permalink
Bump Rust version to 1.70 and remove atty dep
Browse files Browse the repository at this point in the history
  • Loading branch information
guilload committed Jul 18, 2023
1 parent c39876c commit 85c3470
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion quickwit/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions quickwit/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
resolver = "2"
rust-version = "1.69"
rust-version = "1.70"
members = [
"quickwit-actors",
"quickwit-aws",
Expand Down Expand Up @@ -44,7 +44,6 @@ arc-swap = "1.6"
assert-json-diff = "2"
async-speed-limit = "0.4"
async-trait = "0.1"
atty = "0.2"
backoff = { version = "0.4", features = ["tokio"] }
base64 = "0.21"
byte-unit = { version = "4", default-features = false, features = ["serde", "std"] }
Expand Down
1 change: 0 additions & 1 deletion quickwit/quickwit-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ path = "src/generate_markdown.rs"
[dependencies]
anyhow = { workspace = true }
async-trait = { workspace = true }
atty = { workspace = true }
byte-unit = { workspace = true }
bytes = { workspace = true }
chitchat = { workspace = true }
Expand Down
5 changes: 2 additions & 3 deletions quickwit/quickwit-cli/src/tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.

use std::collections::{HashSet, VecDeque};
use std::io::{stdout, Stdout, Write};
use std::io::{stdout, IsTerminal, Stdout, Write};
use std::num::NonZeroUsize;
use std::path::PathBuf;
use std::str::FromStr;
Expand Down Expand Up @@ -370,8 +370,7 @@ pub async fn local_ingest_docs_cli(args: LocalIngestDocsArgs) -> anyhow::Result<
.ask_for_res(DetachIndexingPipeline { pipeline_id })
.await?;

let is_stdin_atty = atty::is(atty::Stream::Stdin);
if args.input_path_opt.is_none() && is_stdin_atty {
if args.input_path_opt.is_none() && io::stdin().is_terminal() {
let eof_shortcut = match env::consts::OS {
"windows" => "CTRL+Z",
_ => "CTRL+D",
Expand Down
2 changes: 1 addition & 1 deletion quickwit/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "1.69"
channel = "1.70"

0 comments on commit 85c3470

Please sign in to comment.