From 35ee03cef2d78908e7d6771eb2735a93e4358a60 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 1 Aug 2023 23:45:53 +0200 Subject: Use my new “proxit” crate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 1698968..383175d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,4 @@ mod error; -mod main_result; use std::{ cmp::Reverse, @@ -14,9 +13,12 @@ use std::{ process::{Command, Stdio}, }; -use tempfile::tempdir; +use { + proxit::MainResult, + tempfile::tempdir, +}; -use {error::Error, main_result::MainResult}; +use error::Error; #[derive(Default)] struct Flags { @@ -27,7 +29,7 @@ struct Flags { pub verbose: bool, } -fn main() -> MainResult { +fn main() -> MainResult<(), Error> { work().into() } -- cgit v1.2.3