Skip to content

Commit

Permalink
chore: Lock crates targeting MSRV >1.49
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-biel committed Jul 21, 2022
1 parent fba9d65 commit a877053
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
10 changes: 6 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"]
Expand Down
20 changes: 10 additions & 10 deletions crates/test-case-macros/src/complex_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ mod kw {
syn::custom_keyword!(matches_regex);
}

#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
pub enum OrderingToken {
Eq,
Lt,
Expand All @@ -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<Expr>,
}

#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
pub struct AlmostEqual {
pub expected_value: Box<Expr>,
pub precision: Box<Expr>,
}

#[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<Expr>,
}

#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
pub struct ContainsInOrder {
pub expected_slice: Box<Expr>,
}

#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
pub struct Len {
pub expected_len: Box<Expr>,
}

#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
pub struct Count {
pub expected_len: Box<Expr>,
}

#[cfg(feature = "with-regex")]
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
pub struct Regex {
pub expected_regex: Box<Expr>,
}
Expand Down

0 comments on commit a877053

Please sign in to comment.