From a8770538579848d5dfbb3cfaf08a7cafd213afd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Biel?= Date: Thu, 21 Jul 2022 11:11:08 +0200 Subject: [PATCH] chore: Lock crates targeting MSRV >1.49 --- Cargo.toml | 10 ++++++---- crates/test-case-macros/src/complex_expr.rs | 20 ++++++++++---------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2ecbbe8..e1e3b85 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,10 +27,12 @@ test-case-macros = { version = "2.1.0", path = "crates/test-case-macros", defaul regex = { version = "1.5", optional = true } [dev-dependencies] -insta = "1.12" -itertools = "0.10" -indexmap = "1.8" -regex = "1.5" +insta = "1.12" +itertools = "0.10" +indexmap = "=1.8.2" +serde_yaml = "=0.8.25" +linked-hash-map = "=0.5.4" +regex = "1.5" [workspace] members = ["crates/*"] diff --git a/crates/test-case-macros/src/complex_expr.rs b/crates/test-case-macros/src/complex_expr.rs index 2061348..477964f 100644 --- a/crates/test-case-macros/src/complex_expr.rs +++ b/crates/test-case-macros/src/complex_expr.rs @@ -38,7 +38,7 @@ mod kw { syn::custom_keyword!(matches_regex); } -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub enum OrderingToken { Eq, Lt, @@ -47,52 +47,52 @@ pub enum OrderingToken { Geq, } -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub enum PathToken { Any, Dir, File, } -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub struct Ord { pub token: OrderingToken, pub expected_value: Box, } -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub struct AlmostEqual { pub expected_value: Box, pub precision: Box, } -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub struct Path { pub token: PathToken, } -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub struct Contains { pub expected_element: Box, } -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub struct ContainsInOrder { pub expected_slice: Box, } -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub struct Len { pub expected_len: Box, } -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub struct Count { pub expected_len: Box, } #[cfg(feature = "with-regex")] -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub struct Regex { pub expected_regex: Box, }