mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
enshort to common variable name
This commit is contained in:
parent
dd5fada7c7
commit
293c7d0aa3
15 changed files with 69 additions and 69 deletions
|
|
@ -48,7 +48,7 @@ impl Gemini {
|
|||
.make(None, &widget.form.name.value().unwrap())
|
||||
{
|
||||
Ok(profile_identity_gemini_id) => profile_identity_gemini_id,
|
||||
Err(reason) => todo!("{}", reason.to_string()),
|
||||
Err(e) => todo!("{}", e.to_string()),
|
||||
},
|
||||
),
|
||||
Value::ImportPem => Some(
|
||||
|
|
@ -58,7 +58,7 @@ impl Gemini {
|
|||
.add(&widget.form.file.pem.take().unwrap())
|
||||
{
|
||||
Ok(profile_identity_gemini_id) => profile_identity_gemini_id,
|
||||
Err(reason) => todo!("{}", reason.to_string()),
|
||||
Err(e) => todo!("{}", e.to_string()),
|
||||
},
|
||||
),
|
||||
};
|
||||
|
|
@ -67,19 +67,19 @@ impl Gemini {
|
|||
match option {
|
||||
// Activate identity for `auth_uri`
|
||||
Some(profile_identity_gemini_id) => {
|
||||
if let Err(reason) = profile
|
||||
if let Err(e) = profile
|
||||
.identity
|
||||
.gemini
|
||||
.auth
|
||||
.apply(profile_identity_gemini_id, &auth_url)
|
||||
{
|
||||
todo!("{}", reason.to_string())
|
||||
todo!("{}", e.to_string())
|
||||
};
|
||||
}
|
||||
// Remove all identity auths for `auth_uri`
|
||||
None => {
|
||||
if let Err(reason) = profile.identity.gemini.auth.remove_scope(&auth_url) {
|
||||
todo!("{}", reason.to_string())
|
||||
if let Err(e) = profile.identity.gemini.auth.remove_scope(&auth_url) {
|
||||
todo!("{}", e.to_string())
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -75,17 +75,17 @@ impl File {
|
|||
button.set_css_classes(&["success"]);
|
||||
button.set_label(filename)
|
||||
}
|
||||
Err(reason) => {
|
||||
Err(e) => {
|
||||
button.set_css_classes(&["error"]);
|
||||
button.set_label(reason.message())
|
||||
button.set_label(e.message())
|
||||
}
|
||||
}
|
||||
}
|
||||
None => todo!(),
|
||||
},
|
||||
Err(reason) => {
|
||||
Err(e) => {
|
||||
button.set_css_classes(&["warning"]);
|
||||
button.set_label(reason.message())
|
||||
button.set_label(e.message())
|
||||
}
|
||||
}
|
||||
button.set_sensitive(true); // unlock
|
||||
|
|
|
|||
|
|
@ -28,11 +28,11 @@ impl Certificate {
|
|||
data: identity.pem,
|
||||
name: certificate.subject_name().unwrap().replace("CN=", ""),
|
||||
}),
|
||||
Err(reason) => Err(Error::TlsCertificate(reason)),
|
||||
Err(e) => Err(Error::TlsCertificate(e)),
|
||||
},
|
||||
None => Err(Error::NotFound(profile_identity_gemini_id)),
|
||||
},
|
||||
Err(reason) => Err(Error::Database(reason)),
|
||||
Err(e) => Err(Error::Database(e)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue