mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-07 03:00:29 +00:00
chore(lint): satisfy workspace clippy
This commit is contained in:
parent
eb4c1a9089
commit
0719e321b1
2 changed files with 8 additions and 3 deletions
|
|
@ -300,6 +300,10 @@ pub(crate) fn configure_cli_target_if_missing(
|
|||
Ok(true)
|
||||
}
|
||||
|
||||
#[expect(
|
||||
clippy::disallowed_methods,
|
||||
reason = "CLI auth/login reads the user settings file synchronously before writing it."
|
||||
)]
|
||||
fn read_settings_document_for_write(config_path: &Path) -> Result<DocumentMut> {
|
||||
if !config_path.exists() {
|
||||
return Ok(DocumentMut::new());
|
||||
|
|
|
|||
|
|
@ -432,9 +432,10 @@ pub async fn create_installation_access_token_with_permissions_and_install_url(
|
|||
match resp.status {
|
||||
200 => {}
|
||||
404 => {
|
||||
let install_url = install_url.map(str::to_string).unwrap_or_else(|| {
|
||||
format!("https://github.com/organizations/{owner}/settings/installations")
|
||||
});
|
||||
let install_url = install_url.map_or_else(
|
||||
|| format!("https://github.com/organizations/{owner}/settings/installations"),
|
||||
str::to_string,
|
||||
);
|
||||
return Err(format!(
|
||||
"GitHub App is not installed for {owner}. \
|
||||
Install it at {install_url}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue