Skip to content

Commit

Permalink
Fix warnings (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia committed Mar 23, 2024
1 parent 9b06e37 commit 90ae5b8
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 14 deletions.
1 change: 0 additions & 1 deletion src/decoder/ifd.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Function for reading TIFF tags

use std::collections::HashMap;
use std::convert::{TryFrom, TryInto};
use std::io::{self, Read, Seek};
use std::mem;
use std::str;
Expand Down
1 change: 0 additions & 1 deletion src/decoder/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use crate::tags::{
CompressionMethod, PhotometricInterpretation, PlanarConfiguration, Predictor, SampleFormat, Tag,
};
use crate::{ColorType, TiffError, TiffFormatError, TiffResult, TiffUnsupportedError, UsageError};
use std::convert::TryFrom;
use std::io::{self, Cursor, Read, Seek};
use std::sync::Arc;

Expand Down
1 change: 0 additions & 1 deletion src/decoder/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::collections::{HashMap, HashSet};
use std::convert::TryFrom;
use std::io::{self, Read, Seek};
use std::ops::Range;

Expand Down
1 change: 0 additions & 1 deletion src/decoder/stream.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! All IO functionality needed for TIFF decoding

use std::convert::TryFrom;
use std::io::{self, BufRead, BufReader, Read, Seek, Take};

/// Byte order of the TIFF file.
Expand Down
1 change: 0 additions & 1 deletion src/decoder/tag_reader.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::convert::TryFrom;
use std::io::{Read, Seek};

use crate::tags::Tag;
Expand Down
3 changes: 1 addition & 2 deletions src/encoder/compression/deflate.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::{encoder::compression::*, tags::CompressionMethod};
use crate::encoder::compression::*;
use flate2::{write::ZlibEncoder, Compression as FlateCompression};
use std::io::Write;

/// The Deflate algorithm used to compress image data in TIFF files.
#[derive(Debug, Clone, Copy)]
Expand Down
3 changes: 1 addition & 2 deletions src/encoder/compression/lzw.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::{encoder::compression::*, tags::CompressionMethod};
use std::io::Write;
use crate::encoder::compression::*;
use weezl::encode::Encoder as LZWEncoder;

/// The LZW algorithm used to compress image data in TIFF files.
Expand Down
4 changes: 2 additions & 2 deletions src/encoder/compression/packbits.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{encoder::compression::*, tags::CompressionMethod};
use std::io::{BufWriter, Error, ErrorKind, Write};
use crate::encoder::compression::*;
use std::io::{BufWriter, Error, ErrorKind};

/// Compressor that uses the Packbits[^note] algorithm to compress bytes.
///
Expand Down
3 changes: 1 addition & 2 deletions src/encoder/compression/uncompressed.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::{encoder::compression::*, tags::CompressionMethod};
use std::io::Write;
use crate::encoder::compression::*;

/// The default algorithm which does not compress at all.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
Expand Down
1 change: 0 additions & 1 deletion src/encoder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pub use tiff_value::*;
use std::{
cmp,
collections::BTreeMap,
convert::{TryFrom, TryInto},
io::{self, Seek, Write},
marker::PhantomData,
mem,
Expand Down

0 comments on commit 90ae5b8

Please sign in to comment.