fix(workspace): resolve clippy warnings in ocs_plugin_api and ocs_doc_api

This commit is contained in:
Karim Jerbi committed 2026-09-07 14:52:58 +01:00
1 parent 822b0afce5
commit 6e01d464e5
4 files changed
+14 -19

No files matched your search

+1 -4
View File
@@ -450,10 +450,7 @@ fn profile_curves<B: DocApiBackend>(
b.profile_curves(profile)
}
/// Validate a `Curve2Spec`'s fallible conditions BEFORE mutation (the same rules
/// the host's `curve_spec_to_entity` enforces), so `CreateMany` stays all-or-nothing.
/// Currently: ellipse minor/major ratio must be in (0, 1].
/// Validate that an entity exists before performing an operation.
fn require_exists<B: DocApiBackend>(b: &B, id: ObjectId, op: &'static str) -> ApiResult<()> {
if b.entity_exists(id) {
Ok(())