Private
Public Access
1
0

style: fix rustfmt formatting for CI
Some checks failed
CI/CD Pipeline / Code Format (push) Successful in 5s
CI/CD Pipeline / Clippy Lints (push) Successful in 43s
CI/CD Pipeline / All Unit Tests (push) Successful in 1m14s
CI/CD Pipeline / Security Audit (push) Successful in 5s
CI/CD Pipeline / Enrollment Tests (push) Successful in 1m13s
CI/CD Pipeline / Verify Enrollment CLI Flag (push) Successful in 59s
CI/CD Pipeline / Build Arch Package (push) Failing after 2m53s
CI/CD Pipeline / Build Debian Package (Ubuntu 22.04) (push) Successful in 2m40s
CI/CD Pipeline / Build Debian Package (push) Successful in 2m53s
CI/CD Pipeline / Build Alpine Package (push) Successful in 4m0s
CI/CD Pipeline / Build RPM Package (push) Successful in 4m24s

This commit is contained in:
2026-05-18 23:54:15 +00:00
parent 653623b9f0
commit 11168b22df
4 changed files with 14 additions and 7 deletions

View File

@ -203,8 +203,8 @@ fn test_enrollment_hostname_field_serializes() {
os_details: serde_json::json!({"name": "Test"}),
hostname: Some("host".to_string()),
};
let json_with = serde_json::to_string(&request_with_hostname)
.expect("Should serialize with hostname");
let json_with =
serde_json::to_string(&request_with_hostname).expect("Should serialize with hostname");
assert!(
json_with.contains("\"hostname\""),
"hostname field should be present in JSON when Some"