aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-01 23:45:53 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-01 23:45:53 +0200
commit35ee03cef2d78908e7d6771eb2735a93e4358a60 (patch)
tree05dc466a2b46bac76a80bb3865b4e9827b231388 /src/main.rs
parent8ec5d631f21c54c9bb0bbd7d6fa39513c9242219 (diff)
Use my new “proxit” crate
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs10
1 files changed, 6 insertions, 4 deletions
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()
}