clippy: zero pedantic warnings across the tree
This commit is contained in:
parent
690cb5ab5b
commit
f9f1346eae
20 changed files with 71 additions and 61 deletions
|
|
@ -27,9 +27,8 @@ const AUTO_UPDATE_PATH: &str = "/etc/hyperhive/claude-plugins-auto-update.json";
|
|||
/// "already exists" message and exits non-zero on some versions).
|
||||
/// Required before any `<plugin>@<marketplace>` install can resolve.
|
||||
async fn add_marketplaces() {
|
||||
let raw = match tokio::fs::read_to_string(MARKETPLACES_PATH).await {
|
||||
Ok(s) => s,
|
||||
Err(_) => return,
|
||||
let Ok(raw) = tokio::fs::read_to_string(MARKETPLACES_PATH).await else {
|
||||
return;
|
||||
};
|
||||
let sources: Vec<String> = match serde_json::from_str(&raw) {
|
||||
Ok(v) => v,
|
||||
|
|
@ -107,9 +106,8 @@ async fn update_marketplaces() {
|
|||
/// journald. The manager itself passes `None` — there's nobody above
|
||||
/// it to notify.
|
||||
pub async fn install_configured(socket: &Path, notify_recipient: Option<&str>) {
|
||||
let raw = match tokio::fs::read_to_string(PLUGINS_PATH).await {
|
||||
Ok(s) => s,
|
||||
Err(_) => return,
|
||||
let Ok(raw) = tokio::fs::read_to_string(PLUGINS_PATH).await else {
|
||||
return;
|
||||
};
|
||||
let specs: Vec<String> = match serde_json::from_str(&raw) {
|
||||
Ok(v) => v,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue