Merge updated origin/main

This commit is contained in:
Hakan Seven committed 2026-09-07 19:01:54 +03:00
commit e51c4d0932
25 files changed
+2516 -136

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(())