From d8c7164cbdc2ccb1ab3cbfbd3aabad1921a2501a Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Mon, 16 Jan 2023 21:04:27 +0100 Subject: 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? --- src/main.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src') 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 { -- cgit v1.2.3