style: Format db.rs
github/actions/ci GitHub Actions CI finished: success

This commit is contained in:
2026-07-06 20:53:14 +01:00
parent 2bc4a98164
commit 48df4f2965
+4 -1
View File
@@ -1308,7 +1308,10 @@ fn media_kind_clause(include_videos: bool) -> &'static str {
/// in a `LIKE` pattern (paired with `ESCAPE '\\'` in the query) without the /// in a `LIKE` pattern (paired with `ESCAPE '\\'` in the query) without the
/// wildcards being interpreted literally. /// wildcards being interpreted literally.
fn escape_like_pattern(value: &str) -> String { fn escape_like_pattern(value: &str) -> String {
value.replace('\\', "\\\\").replace('%', "\\%").replace('_', "\\_") value
.replace('\\', "\\\\")
.replace('%', "\\%")
.replace('_', "\\_")
} }
/// True if any claimable (pending, non-excluded) jobs exist in `job_table`. /// True if any claimable (pending, non-excluded) jobs exist in `job_table`.