mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-21 00:02:30 +00:00
chore: revert unrelated rustfmt churn in windmill-common
This commit is contained in:
@@ -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 * * *"}}))
|
||||
|
||||
Reference in New Issue
Block a user