diff --git a/src/profile/bookmark/memory.rs b/src/profile/bookmark/memory.rs index d0e960ab..2d810066 100644 --- a/src/profile/bookmark/memory.rs +++ b/src/profile/bookmark/memory.rs @@ -33,7 +33,7 @@ impl Memory { // Slot should be free, let check it twice match index.insert(request, id) { - Some(_) => return Err(Error::Unexpected), + Some(_) => Err(Error::Unexpected), None => Ok(()), } } diff --git a/src/profile/identity/gemini/auth/memory.rs b/src/profile/identity/gemini/auth/memory.rs index f586e945..2d2ca372 100644 --- a/src/profile/identity/gemini/auth/memory.rs +++ b/src/profile/identity/gemini/auth/memory.rs @@ -33,7 +33,7 @@ impl Memory { // Slot should be free, let check it twice match index.insert(url, profile_identity_gemini_id) { - Some(_) => return Err(Error::Unexpected), + Some(_) => Err(Error::Unexpected), None => Ok(()), } } diff --git a/src/profile/identity/gemini/memory.rs b/src/profile/identity/gemini/memory.rs index dfe16e4c..f51455b3 100644 --- a/src/profile/identity/gemini/memory.rs +++ b/src/profile/identity/gemini/memory.rs @@ -33,7 +33,7 @@ impl Memory { // Slot should be free, let check it twice match index.insert(profile_identity_gemini_id, pem) { - Some(_) => return Err(Error::Unexpected), + Some(_) => Err(Error::Unexpected), None => Ok(()), } }