aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-01-16 21:04:27 +0100
committerDaniel Schadt <kingdread@gmx.de>2023-01-16 21:04:27 +0100
commitd8c7164cbdc2ccb1ab3cbfbd3aabad1921a2501a (patch)
tree332c78b03897b51a1a449031156bd13cc79d3aa2
parentf81eb4882a015ff19cb7209980ca3c7dd33bbae1 (diff)
downloadhittekaart-d8c7164cbdc2ccb1ab3cbfbd3aabad1921a2501a.tar.gz
hittekaart-d8c7164cbdc2ccb1ab3cbfbd3aabad1921a2501a.tar.bz2
hittekaart-d8c7164cbdc2ccb1ab3cbfbd3aabad1921a2501a.zip
import modules from crate instead of re-defining
This is a bit more DRY, as we only have one place where we need to list all submodules. It does not give us the "unused function" warning anymore, but we can maybe find a different solution for that?
-rw-r--r--src/main.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs
index a508fdc..8727003 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -6,16 +6,14 @@ use std::{
use clap::Parser;
use color_eyre::eyre::{bail, eyre, Context, Result};
+use hittekaart::{
+ gpx::{self, Compression},
+ renderer,
+};
use indicatif::{MultiProgress, ProgressBar, ProgressDrawTarget, ProgressStyle};
use is_terminal::IsTerminal;
use rayon::ThreadPoolBuilder;
-mod gpx;
-mod layer;
-mod renderer;
-
-use gpx::Compression;
-
#[derive(Parser, Debug, Clone)]
#[command(author, version, about)]
struct Args {