From 8417375e5a0e68a7e2147695b83ad0d6eda50701 Mon Sep 17 00:00:00 2001 From: Sebastian <106036+schoeller@users.noreply.github.com> Date: Sun, 6 Sep 2026 10:55:36 +0200 Subject: [PATCH] ocs_doc_api: fix stray impl-closing brace in both mock backends The loft/attributes/viewport mock methods were appended after the impl block's closing brace, orphaning add_vertex..finalize_op and leaving a duplicate brace. Move the impl close to the true end in both tests/mock_backend.rs and examples/common/mod.rs. Crate tests (8) + examples compile green again. --- crates/ocs_doc_api/examples/common/mod.rs | 1 - crates/ocs_doc_api/tests/mock_backend.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/crates/ocs_doc_api/examples/common/mod.rs b/crates/ocs_doc_api/examples/common/mod.rs index 8ddc9a849..bb47211c0 100644 --- a/crates/ocs_doc_api/examples/common/mod.rs +++ b/crates/ocs_doc_api/examples/common/mod.rs @@ -225,7 +225,6 @@ impl DocApiBackend for MockBackend { fn viewport_view(&self, id: ObjectId) -> ApiResult<([f64; 3], f64)> { self.viewport_views.get(&id).copied().ok_or(ApiError::UnknownId(id)) } -} fn add_vertex(&mut self, id: ObjectId, _at: usize, _point: [f64; 3]) -> ApiResult<()> { if self.entity_exists(id) { Ok(()) diff --git a/crates/ocs_doc_api/tests/mock_backend.rs b/crates/ocs_doc_api/tests/mock_backend.rs index f6e8b39af..685a44103 100644 --- a/crates/ocs_doc_api/tests/mock_backend.rs +++ b/crates/ocs_doc_api/tests/mock_backend.rs @@ -166,7 +166,6 @@ impl DocApiBackend for MockBackend { fn viewport_view(&self, id: ObjectId) -> ApiResult<([f64; 3], f64)> { self.viewport_views.get(&id).copied().ok_or(ApiError::UnknownId(id)) } -} fn add_vertex(&mut self, id: ObjectId, _at: usize, _point: [f64; 3]) -> ApiResult<()> { if self.entity_exists(id) { Ok(())