chore(lint): satisfy workspace clippy

This commit is contained in:
Bryan Helmkamp 2026-04-29 11:48:22 -04:00
parent eb4c1a9089
commit 0719e321b1
No known key found for this signature in database
2 changed files with 8 additions and 3 deletions

View file

@ -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());

View file

@ -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}"