From 5d2a0ffe26bf18f4d50f588b66f393cda2faced3 Mon Sep 17 00:00:00 2001 From: "Guillaume W. Bres" Date: Sun, 10 Apr 2022 13:14:25 +0200 Subject: [PATCH] cleanup warnings --- src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index b1bfb9c..a0424f9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,6 @@ use rinex::hatanaka; use clap::App; use clap::load_yaml; use thiserror::Error; -use std::str::FromStr; use std::io::{Write, BufRead, BufReader}; #[derive(Error, Debug)] @@ -29,10 +28,10 @@ fn main() -> Result<(), Error> { .unwrap(); let crx2rnx = matches.is_present("crx2rnx"); - let rnx2crx = matches.is_present("rnx2crx"); + let _rnx2crx = matches.is_present("rnx2crx"); let m = u16::from_str_radix(matches.value_of("m") .unwrap_or("8"),10).unwrap(); - let strict_flag = matches.is_present("strict"); + let _strict_flag = matches.is_present("strict"); let default_output : String = match crx2rnx { true => { @@ -71,7 +70,6 @@ fn main() -> Result<(), Error> { /// m : maximal compression order for core algorithm /// writer: stream fn decompress (fp: &str, m: u16, mut writer: std::fs::File) -> Result<(), Error> { - let mut content = String::new(); let input = std::fs::File::open(fp)?; let reader = BufReader::new(input); let header = header::Header::new(fp)?;