Skip to content

Commit 71b5fb3

Browse files
Replace tera with rinja
1 parent df1d37d commit 71b5fb3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1445
-1240
lines changed

Cargo.lock

Lines changed: 57 additions & 205 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ tempfile = "3.1.0"
100100
fn-error-context = "0.2.0"
101101

102102
# Templating
103-
tera = { version = "1.5.0", features = ["builtins"] }
103+
rinja = { git = "https://github.com/rinja-rs/rinja" }
104104
walkdir = "2"
105105

106106
# Date and Time utilities

src/db/types.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ impl sqlx::postgres::PgHasArrayType for BuildStatus {
4545
}
4646
}
4747

48+
impl<'a> PartialEq<&'a str> for BuildStatus {
49+
fn eq(&self, other: &&str) -> bool {
50+
match self {
51+
Self::Success => *other == "success",
52+
Self::Failure => *other == "failure",
53+
Self::InProgress => *other == "in_progress",
54+
}
55+
}
56+
}
57+
4858
#[cfg(test)]
4959
mod tests {
5060
use super::*;

0 commit comments

Comments
 (0)