mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
implement to_string method, prevent memory index overwrite on validation step
This commit is contained in:
parent
58ed923bc7
commit
cda94cba2e
4 changed files with 42 additions and 15 deletions
|
|
@ -138,21 +138,21 @@ impl Gemini {
|
|||
match option {
|
||||
// Activate identity for `auth_uri`
|
||||
Some(profile_identity_gemini_id) => {
|
||||
profile
|
||||
if let Err(reason) = profile
|
||||
.identity
|
||||
.gemini
|
||||
.auth
|
||||
.apply(profile_identity_gemini_id, auth_url.as_str())
|
||||
.unwrap();
|
||||
{
|
||||
todo!("{}", reason.to_string())
|
||||
};
|
||||
}
|
||||
// Remove all identity auths for `auth_uri`
|
||||
None => {
|
||||
profile
|
||||
.identity
|
||||
.gemini
|
||||
.auth
|
||||
.remove(auth_url.as_str())
|
||||
.unwrap();
|
||||
if let Err(reason) = profile.identity.gemini.auth.remove(auth_url.as_str())
|
||||
{
|
||||
todo!("{}", reason.to_string())
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue