From 03d97da6c7c918c4efcfb4be0e1f9db17b973e26 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 14 Nov 2024 14:21:24 +0200 Subject: [PATCH] add comment --- src/profile/bookmark/memory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/profile/bookmark/memory.rs b/src/profile/bookmark/memory.rs index a46c7876..efcb51a3 100644 --- a/src/profile/bookmark/memory.rs +++ b/src/profile/bookmark/memory.rs @@ -24,7 +24,7 @@ impl Memory { /// * validate record with same key does not exist yet pub fn add(&self, request: String, id: i64) -> Result<(), Error> { match self.index.borrow_mut().insert(request, id) { - Some(_) => Err(Error::Overwrite), + Some(_) => Err(Error::Overwrite), // @TODO prevent? None => Ok(()), } }