style: apply cargo fmt across workspace

This commit is contained in:
Karim Jerbi committed 2026-10-11 03:14:29 +01:00
1 parent 85710e5454
commit 9cf9ff2c5c
531 files changed
+57740 -33906

No files matched your search

+11 -6
View File
@@ -147,14 +147,19 @@ mod tests {
value["ocs_plugin_api_version"].as_str(),
Some(env!("CARGO_PKG_VERSION"))
);
assert_eq!(value["api_version"].as_i64(), Some(crate::API_VERSION as i64));
assert_eq!(
value["api_version"].as_i64(),
Some(crate::API_VERSION as i64)
);
assert_eq!(
value["api_version_min_supported"].as_i64(),
Some(crate::API_VERSION_MIN_SUPPORTED as i64)
);
// acadrust_version should have a patch component (e.g. "0.4.0").
let opencadcodec = value["acadrust_version"].as_str().expect("acadrust_version string");
let opencadcodec = value["acadrust_version"]
.as_str()
.expect("acadrust_version string");
assert_eq!(opencadcodec.split('.').count(), 3);
}
@@ -223,10 +228,10 @@ mod tests {
assert!(acadrust_source_hash("").is_none());
assert!(acadrust_source_hash("registry+https://crates.io").is_none());
assert!(acadrust_source_hash("git+https://github.com/foo/bar.git#short").is_none());
assert!(
acadrust_source_hash("git+https://github.com/foo/bar.git#gggggggggggggggggggggggggggggggggggggggg")
.is_none()
);
assert!(acadrust_source_hash(
"git+https://github.com/foo/bar.git#gggggggggggggggggggggggggggggggggggggggg"
)
.is_none());
}
#[test]