diff options
author | Florian Klink <flokli@flokli.de> | 2023-05-25T07·57+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-05-25T10·48+0000 |
commit | dbb4d5e5b2842ccc134ac29ad28f3b60ad4a3341 (patch) | |
tree | 8404f1a03a40edfee6b00c1718680c9c575208f6 /tvix/store/src/bin | |
parent | 92b6d15da3ff7717d8d480fed4c31f68924656f8 (diff) |
refactor(tvix/store/bin): use std::io r/6198
Change-Id: I3f3dc9732d90790d92268c04c75eccbe92e7e05b Reviewed-on: https://cl.tvl.fyi/c/depot/+/8634 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/store/src/bin')
-rw-r--r-- | tvix/store/src/bin/tvix-store.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tvix/store/src/bin/tvix-store.rs b/tvix/store/src/bin/tvix-store.rs index 8966be211fb2..feda586fcb46 100644 --- a/tvix/store/src/bin/tvix-store.rs +++ b/tvix/store/src/bin/tvix-store.rs @@ -1,5 +1,6 @@ use clap::Subcommand; use data_encoding::BASE64; +use std::io; use std::path::PathBuf; use tracing_subscriber::prelude::*; use tvix_store::blobservice::SledBlobService; @@ -60,7 +61,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { .with(if cli.json { Some( tracing_subscriber::fmt::Layer::new() - .with_writer(std::io::stdout.with_max_level(level)) + .with_writer(io::stdout.with_max_level(level)) .json(), ) } else { @@ -69,7 +70,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { .with(if !cli.json { Some( tracing_subscriber::fmt::Layer::new() - .with_writer(std::io::stdout.with_max_level(level)) + .with_writer(io::stdout.with_max_level(level)) .pretty(), ) } else { @@ -140,7 +141,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { let path_info = tokio::task::spawn_blocking(move || { io.import_path_with_pathinfo(&path_move) - .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e.to_string())) + .map_err(|e| io::Error::new(io::ErrorKind::Other, e.to_string())) }) .await??; |