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

This commit is contained in:
Joeri Exelmans 2025-11-01 13:56:36 +01:00
parent be7fcb6c8a
commit 654a0521f7
2 changed files with 6 additions and 6 deletions

View file

@ -16,13 +16,13 @@ pub enum Ordering {
#[display(fmt = "!=")]
NotEq,
/// 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 {
/// Denotes `lhs < rhs` if `strict`, and `lhs <= rhs` otherwise.
strict: bool,
},
/// 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 {
/// Denotes `lhs > rhs` if `strict`, and `lhs >= rhs` otherwise.
strict: bool,
@ -235,7 +235,7 @@ impl_bool_expr!(Not, arg);
/// Logical conjunction of a list of expressions
#[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 {
/// Expressions to be "and"-ed
pub args: Vec<BoolExpr>,
@ -245,7 +245,7 @@ impl_bool_expr!(And, [args]);
/// Logical disjunction of a list of expressions
#[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 {
/// Expressions to be "or"-ed
pub args: Vec<BoolExpr>,

View file

@ -90,7 +90,7 @@ impl_num_expr!(Neg, arg);
/// Arithmetic addition of a list of numeric expressions
#[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 {
/// List of expressions being added
pub args: Vec<NumExpr>,
@ -110,7 +110,7 @@ impl_num_expr!(Sub, lhs, rhs);
/// Arithmetic multiplication of a list of numeric expressions
#[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 {
/// List of expressions being multiplied
pub args: Vec<NumExpr>,