From dbb4d5e5b2842ccc134ac29ad28f3b60ad4a3341 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 25 May 2023 10:57:39 +0300 Subject: refactor(tvix/store/bin): use std::io Change-Id: I3f3dc9732d90790d92268c04c75eccbe92e7e05b Reviewed-on: https://cl.tvl.fyi/c/depot/+/8634 Reviewed-by: tazjin Autosubmit: flokli Tested-by: BuildkiteCI --- tvix/store/src/bin/tvix-store.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tvix/store/src/bin/tvix-store.rs') 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> { .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> { .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> { 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??; -- cgit 1.4.1