Skip to content

Commit

Permalink
actually fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically committed Jul 24, 2024
1 parent 880e383 commit 16ab7c1
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 66 deletions.
5 changes: 1 addition & 4 deletions apps/app/src/api/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ pub async fn logs_get_output_by_filename(
log_type: LogType,
filename: String,
) -> Result<CensoredString> {
Ok(
logs::get_output_by_filename(profile_path, log_type, &filename)
.await?,
)
Ok(logs::get_output_by_filename(profile_path, log_type, &filename).await?)
}

/// Delete all logs for a profile by profile id
Expand Down
3 changes: 0 additions & 3 deletions packages/app-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@
"lint": "cargo fmt --check && cargo clippy -- -D warnings",
"fix": "cargo fmt && cargo clippy --fix",
"test": "cargo test"
},
"dependencies": {
"@modrinth/app-macros": "workspace:*"
}
}
10 changes: 2 additions & 8 deletions packages/app-lib/src/state/profiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -785,14 +785,8 @@ impl Profile {
let project_path =
format!("{}/{}", project_type.get_folder(), file_name);

cache_file_hash(
bytes.clone(),
profile_path,
&project_path,
hash,
exec,
)
.await?;
cache_file_hash(bytes.clone(), profile_path, &project_path, hash, exec)
.await?;

util::fetch::write(&path.join(&project_path), &bytes, io_semaphore)
.await?;
Expand Down
112 changes: 61 additions & 51 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 16ab7c1

Please sign in to comment.