mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
add comment
This commit is contained in:
parent
c83248741b
commit
03d97da6c7
1 changed files with 1 additions and 1 deletions
|
|
@ -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(()),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue