From 1e1eb95926f556e666bc20355327abd24d264858 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Thu, 1 Aug 2024 22:07:04 +0200 Subject: minor cleanup --- src/sheet/cell.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sheet/cell.rs') diff --git a/src/sheet/cell.rs b/src/sheet/cell.rs index 9608b93..3b18bde 100644 --- a/src/sheet/cell.rs +++ b/src/sheet/cell.rs @@ -89,6 +89,10 @@ pub struct CellRef { } impl CellRef { + /// # Safety + /// + /// This function shall only be called by the Sheet instance itsself or + /// if it has been assured that the `SheetId` is valid. pub unsafe fn new(sheet_id: SheetId, row: usize, column: usize, cell: Cell) -> Self { Self { sheet_id, -- cgit v1.2.3-70-g09d2