Fix warnings (#225)

This commit is contained in:
Jonathan Behrens authored and GitHub committed 2024-03-23 13:51:28 -07:00
1 parent 9b06e3726d
commit 90ae5b8e54
10 files changed
+5 -14

No files matched your search

-1
View File
@@ -1,7 +1,6 @@
//! Function for reading TIFF tags //! Function for reading TIFF tags
use std::collections::HashMap; use std::collections::HashMap;
use std::convert::{TryFrom, TryInto};
use std::io::{self, Read, Seek}; use std::io::{self, Read, Seek};
use std::mem; use std::mem;
use std::str; use std::str;
-1
View File
@@ -7,7 +7,6 @@ use crate::tags::{
CompressionMethod, PhotometricInterpretation, PlanarConfiguration, Predictor, SampleFormat, Tag, CompressionMethod, PhotometricInterpretation, PlanarConfiguration, Predictor, SampleFormat, Tag,
}; };
use crate::{ColorType, TiffError, TiffFormatError, TiffResult, TiffUnsupportedError, UsageError}; use crate::{ColorType, TiffError, TiffFormatError, TiffResult, TiffUnsupportedError, UsageError};
use std::convert::TryFrom;
use std::io::{self, Cursor, Read, Seek}; use std::io::{self, Cursor, Read, Seek};
use std::sync::Arc; use std::sync::Arc;
-1
View File
@@ -1,5 +1,4 @@
use std::collections::{HashMap, HashSet}; use std::collections::{HashMap, HashSet};
use std::convert::TryFrom;
use std::io::{self, Read, Seek}; use std::io::{self, Read, Seek};
use std::ops::Range; use std::ops::Range;
-1
View File
@@ -1,6 +1,5 @@
//! All IO functionality needed for TIFF decoding //! All IO functionality needed for TIFF decoding
use std::convert::TryFrom;
use std::io::{self, BufRead, BufReader, Read, Seek, Take}; use std::io::{self, BufRead, BufReader, Read, Seek, Take};
/// Byte order of the TIFF file. /// Byte order of the TIFF file.
-1
View File
@@ -1,4 +1,3 @@
use std::convert::TryFrom;
use std::io::{Read, Seek}; use std::io::{Read, Seek};
use crate::tags::Tag; use crate::tags::Tag;
+1 -2
View File
@@ -1,6 +1,5 @@
use crate::{encoder::compression::*, tags::CompressionMethod}; use crate::encoder::compression::*;
use flate2::{write::ZlibEncoder, Compression as FlateCompression}; use flate2::{write::ZlibEncoder, Compression as FlateCompression};
use std::io::Write;
/// The Deflate algorithm used to compress image data in TIFF files. /// The Deflate algorithm used to compress image data in TIFF files.
#[derive(Debug, Clone, Copy)] #[derive(Debug, Clone, Copy)]
+1 -2
View File
@@ -1,5 +1,4 @@
use crate::{encoder::compression::*, tags::CompressionMethod}; use crate::encoder::compression::*;
use std::io::Write;
use weezl::encode::Encoder as LZWEncoder; use weezl::encode::Encoder as LZWEncoder;
/// The LZW algorithm used to compress image data in TIFF files. /// The LZW algorithm used to compress image data in TIFF files.
+2 -2
View File
@@ -1,5 +1,5 @@
use crate::{encoder::compression::*, tags::CompressionMethod}; use crate::encoder::compression::*;
use std::io::{BufWriter, Error, ErrorKind, Write}; use std::io::{BufWriter, Error, ErrorKind};
/// Compressor that uses the Packbits[^note] algorithm to compress bytes. /// Compressor that uses the Packbits[^note] algorithm to compress bytes.
/// ///
+1 -2
View File
@@ -1,5 +1,4 @@
use crate::{encoder::compression::*, tags::CompressionMethod}; use crate::encoder::compression::*;
use std::io::Write;
/// The default algorithm which does not compress at all. /// The default algorithm which does not compress at all.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] #[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
-1
View File
@@ -3,7 +3,6 @@ pub use tiff_value::*;
use std::{ use std::{
cmp, cmp,
collections::BTreeMap, collections::BTreeMap,
convert::{TryFrom, TryInto},
io::{self, Seek, Write}, io::{self, Seek, Write},
marker::PhantomData, marker::PhantomData,
mem, mem,