Convert to edition 2018
Notably, This enables NLL even on older compilers such as 1.34.
This commit is contained in:
1 parent
e72401d4ac
commit
8ab9d30eff
7 files changed
+17
-12
No files matched your search
@@ -1,4 +1,4 @@
|
||||
use tags::{PhotometricInterpretation, SampleFormat};
|
||||
use crate::tags::{PhotometricInterpretation, SampleFormat};
|
||||
|
||||
/// Trait for different colortypes that can be encoded.
|
||||
pub trait ColorType {
|
||||
|
||||
+3
-3
@@ -3,9 +3,9 @@ use std::convert::TryFrom;
|
||||
use std::io::{Seek, Write};
|
||||
use std::{cmp, io, mem};
|
||||
|
||||
use bytecast;
|
||||
use error::{TiffError, TiffFormatError, TiffResult};
|
||||
use tags::{self, ResolutionUnit, Tag, Type};
|
||||
use crate::bytecast;
|
||||
use crate::error::{TiffError, TiffFormatError, TiffResult};
|
||||
use crate::tags::{self, ResolutionUnit, Tag, Type};
|
||||
|
||||
pub mod colortype;
|
||||
mod writer;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use error::TiffResult;
|
||||
use crate::error::TiffResult;
|
||||
use std::io::{self, Seek, SeekFrom, Write};
|
||||
|
||||
pub fn write_tiff_header<W: Write>(writer: &mut TiffWriter<W>) -> TiffResult<()> {
|
||||
|
||||
Reference in new issue
Block a user