remove suffix 'r' from string literals (fixes build)
Some checks are pending
CI / testing (macos-latest) (push) Waiting to run
CI / testing (ubuntu-latest) (push) Waiting to run
CI / testing (windows-latest) (push) Waiting to run
CI / linting (macos-latest) (push) Waiting to run
CI / linting (ubuntu-latest) (push) Waiting to run
CI / linting (windows-latest) (push) Waiting to run
CI / Documentation (push) Waiting to run
CI / coverage (ubuntu-latest) (push) Waiting to run
Some checks are pending
CI / testing (macos-latest) (push) Waiting to run
CI / testing (ubuntu-latest) (push) Waiting to run
CI / testing (windows-latest) (push) Waiting to run
CI / linting (macos-latest) (push) Waiting to run
CI / linting (ubuntu-latest) (push) Waiting to run
CI / linting (windows-latest) (push) Waiting to run
CI / Documentation (push) Waiting to run
CI / coverage (ubuntu-latest) (push) Waiting to run
This commit is contained in:
parent
be7fcb6c8a
commit
654a0521f7
2 changed files with 6 additions and 6 deletions
|
|
@ -16,13 +16,13 @@ pub enum Ordering {
|
||||||
#[display(fmt = "!=")]
|
#[display(fmt = "!=")]
|
||||||
NotEq,
|
NotEq,
|
||||||
/// Less than check
|
/// Less than check
|
||||||
#[display(fmt = "{}", r#"if *strict { "<".to_string() } else { "<=".to_string() } "#r)]
|
#[display(fmt = "{}", r#"if *strict { "<".to_string() } else { "<=".to_string() } "#)]
|
||||||
Less {
|
Less {
|
||||||
/// Denotes `lhs < rhs` if `strict`, and `lhs <= rhs` otherwise.
|
/// Denotes `lhs < rhs` if `strict`, and `lhs <= rhs` otherwise.
|
||||||
strict: bool,
|
strict: bool,
|
||||||
},
|
},
|
||||||
/// Greater than check
|
/// Greater than check
|
||||||
#[display(fmt = "{}", r#"if *strict { ">".to_string() } else { ">=".to_string() } "#r)]
|
#[display(fmt = "{}", r#"if *strict { ">".to_string() } else { ">=".to_string() } "#)]
|
||||||
Greater {
|
Greater {
|
||||||
/// Denotes `lhs > rhs` if `strict`, and `lhs >= rhs` otherwise.
|
/// Denotes `lhs > rhs` if `strict`, and `lhs >= rhs` otherwise.
|
||||||
strict: bool,
|
strict: bool,
|
||||||
|
|
@ -235,7 +235,7 @@ impl_bool_expr!(Not, arg);
|
||||||
|
|
||||||
/// Logical conjunction of a list of expressions
|
/// Logical conjunction of a list of expressions
|
||||||
#[derive(Clone, Debug, PartialEq, argus_derive::BoolExpr, derive_more::Display)]
|
#[derive(Clone, Debug, PartialEq, argus_derive::BoolExpr, derive_more::Display)]
|
||||||
#[display(fmt = "({})", r#"args.iter().map(ToString::to_string).join(") && (")"#r)]
|
#[display(fmt = "({})", r#"args.iter().map(ToString::to_string).join(") && (")"#)]
|
||||||
pub struct And {
|
pub struct And {
|
||||||
/// Expressions to be "and"-ed
|
/// Expressions to be "and"-ed
|
||||||
pub args: Vec<BoolExpr>,
|
pub args: Vec<BoolExpr>,
|
||||||
|
|
@ -245,7 +245,7 @@ impl_bool_expr!(And, [args]);
|
||||||
|
|
||||||
/// Logical disjunction of a list of expressions
|
/// Logical disjunction of a list of expressions
|
||||||
#[derive(Clone, Debug, PartialEq, argus_derive::BoolExpr, derive_more::Display)]
|
#[derive(Clone, Debug, PartialEq, argus_derive::BoolExpr, derive_more::Display)]
|
||||||
#[display(fmt = "({})", r#"args.iter().map(ToString::to_string).join(") || (")"#r)]
|
#[display(fmt = "({})", r#"args.iter().map(ToString::to_string).join(") || (")"#)]
|
||||||
pub struct Or {
|
pub struct Or {
|
||||||
/// Expressions to be "or"-ed
|
/// Expressions to be "or"-ed
|
||||||
pub args: Vec<BoolExpr>,
|
pub args: Vec<BoolExpr>,
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ impl_num_expr!(Neg, arg);
|
||||||
|
|
||||||
/// Arithmetic addition of a list of numeric expressions
|
/// Arithmetic addition of a list of numeric expressions
|
||||||
#[derive(Clone, Debug, PartialEq, argus_derive::NumExpr, derive_more::Display)]
|
#[derive(Clone, Debug, PartialEq, argus_derive::NumExpr, derive_more::Display)]
|
||||||
#[display(fmt = "({})", r#"args.iter().map(ToString::to_string).join(" + ")"#r)]
|
#[display(fmt = "({})", r#"args.iter().map(ToString::to_string).join(" + ")"#)]
|
||||||
pub struct Add {
|
pub struct Add {
|
||||||
/// List of expressions being added
|
/// List of expressions being added
|
||||||
pub args: Vec<NumExpr>,
|
pub args: Vec<NumExpr>,
|
||||||
|
|
@ -110,7 +110,7 @@ impl_num_expr!(Sub, lhs, rhs);
|
||||||
|
|
||||||
/// Arithmetic multiplication of a list of numeric expressions
|
/// Arithmetic multiplication of a list of numeric expressions
|
||||||
#[derive(Clone, Debug, PartialEq, argus_derive::NumExpr, derive_more::Display)]
|
#[derive(Clone, Debug, PartialEq, argus_derive::NumExpr, derive_more::Display)]
|
||||||
#[display(fmt = "({})", r#"args.iter().map(ToString::to_string).join(" * ")"#r)]
|
#[display(fmt = "({})", r#"args.iter().map(ToString::to_string).join(" * ")"#)]
|
||||||
pub struct Mul {
|
pub struct Mul {
|
||||||
/// List of expressions being multiplied
|
/// List of expressions being multiplied
|
||||||
pub args: Vec<NumExpr>,
|
pub args: Vec<NumExpr>,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue