diff --git a/.travis.yml b/.travis.yml index 2d377e8..e027dcb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,24 +7,24 @@ rust: matrix: include: - env: RUSTFMT - rust: 1.35.0 # `stable`: Locking down for consistent behavior + rust: 1.38.0 # `stable`: Locking down for consistent behavior install: - rustup component add rustfmt script: - cargo fmt --all -- --check - env: CodeGen - rust: 1.35.0 # `stable`: Locking down for consistent behavior + rust: 1.38.0 # `stable`: Locking down for consistent behavior install: - rustup component add rustfmt script: - cargo run --package typos-codegen -- --input typos-dict/assets/words.csv --output typos-dict/src/dict_codegen.rs --check - env: RUSTFLAGS="-D warnings" - rust: 1.35.0 # `stable`: Locking down for consistent behavior + rust: 1.38.0 # `stable`: Locking down for consistent behavior install: script: - cargo check --tests --all - env: CLIPPY - rust: 1.35.0 # `stable`: Locking down for consistent behavior + rust: 1.38.0 # `stable`: Locking down for consistent behavior install: - rustup component add clippy script: diff --git a/typos/src/checks.rs b/typos/src/checks.rs index 3941887..591fdae 100644 --- a/typos/src/checks.rs +++ b/typos/src/checks.rs @@ -36,7 +36,7 @@ impl CheckSettings { pub fn build<'d, 'p>( &self, - dictionary: &'d Dictionary, + dictionary: &'d dyn Dictionary, parser: &'p tokens::Parser, ) -> Checks<'d, 'p> { Checks { @@ -61,7 +61,7 @@ impl Default for CheckSettings { #[derive(Clone)] pub struct Checks<'d, 'p> { - dictionary: &'d Dictionary, + dictionary: &'d dyn Dictionary, parser: &'p tokens::Parser, check_filenames: bool, check_files: bool,