From 22b68d02d498b6bc5d066efb446ab6f427b3622b Mon Sep 17 00:00:00 2001 From: Hugo Ledoux Date: Tue, 5 Mar 2024 17:47:02 +0100 Subject: [PATCH] Rename error where TIN has no attributes --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 88fc57d..9189303 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -126,7 +126,7 @@ pub enum StartinError { VertexInfinite, VertexRemoved, VertexUnknown, - NoAttributes, + TinHasNoAttributes, TriangulationAlreadyInitialised, } @@ -809,7 +809,7 @@ impl Triangulation { true => Err(StartinError::VertexRemoved), false => match &self.attributes { Some(x) => Ok(x.get(vi).unwrap().clone()), - None => Err(StartinError::NoAttributes), + None => Err(StartinError::TinHasNoAttributes), }, }, }