chore: revert unrelated rustfmt churn in windmill-common

This commit is contained in:
hugocasa
2026-08-28 18:43:28 +02:00
parent 322125bafe
commit c4e981554d
2 changed files with 8 additions and 5 deletions
@@ -8,7 +8,12 @@
use sqlx::{Pool, Postgres};
/// No action is recordable in the public build.
pub fn is_recordable_event(_feature: &str, _kind: &str, _key: &str, _entity_id: &str) -> bool {
pub fn is_recordable_event(
_feature: &str,
_kind: &str,
_key: &str,
_entity_id: &str,
) -> bool {
false
}
@@ -513,10 +513,8 @@ mod tests {
/// failure the trigger had before it.
#[test]
fn diff_keeps_only_what_changed() {
let before =
json!({"schedule": "0 0 * * *", "enabled": true, "edited_at": "a", "error": "boom"});
let after =
json!({"schedule": "0 1 * * *", "enabled": true, "edited_at": "b", "error": null});
let before = json!({"schedule": "0 0 * * *", "enabled": true, "edited_at": "a", "error": "boom"});
let after = json!({"schedule": "0 1 * * *", "enabled": true, "edited_at": "b", "error": null});
assert_eq!(
summarize_changes(Some(&before), Some(&after)),
Some(json!({"schedule": {"old": "0 0 * * *", "new": "0 1 * * *"}}))