From 953f6d0b2a8c85f08ade5cc5526d4c44f2abcddd Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 17 Jan 2025 14:43:48 +0200 Subject: Add type alias DBResult --- log_db/src/record.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'log_db/src/record.rs') diff --git a/log_db/src/record.rs b/log_db/src/record.rs index 4a30902..cbb1faa 100644 --- a/log_db/src/record.rs +++ b/log_db/src/record.rs @@ -49,7 +49,7 @@ impl Record { &self.values[index] } - pub fn validate(&self, schema: &Vec<(Field, ValueType)>) -> Result<(), DBError> { + pub fn validate(&self, schema: &Vec<(Field, ValueType)>) -> DBResult<()> { // Validate the record length if self.values.len() != schema.len() { return Err(DBError::ValidationError(format!( -- cgit v1.3