diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-04-07 13:40:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 13:40:56 +0200 |
commit | a07c8de752a3193d6e4e80fffeabde06af747fa0 (patch) | |
tree | 366a958b576096bfac989fafed2e66a18677a6e8 /src-tauri | |
parent | 90e9c11560e0b73be301d276bdd76b000270c5d3 (diff) | |
download | FlightCore-a07c8de752a3193d6e4e80fffeabde06af747fa0.tar.gz FlightCore-a07c8de752a3193d6e4e80fffeabde06af747fa0.zip |
fix: Change enum value casing (#255)
* fix: Chanege enum value casing
as suggested by clippy
* fix: Fix forgotten case change
Diffstat (limited to 'src-tauri')
-rw-r--r-- | src-tauri/bindings/PullRequestType.ts | 2 | ||||
-rw-r--r-- | src-tauri/src/github/pull_requests.rs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src-tauri/bindings/PullRequestType.ts b/src-tauri/bindings/PullRequestType.ts index 2d1fd0a8..582f831a 100644 --- a/src-tauri/bindings/PullRequestType.ts +++ b/src-tauri/bindings/PullRequestType.ts @@ -1,3 +1,3 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type PullRequestType = "MODS" | "LAUNCHER";
\ No newline at end of file +export type PullRequestType = "Mods" | "Launcher";
\ No newline at end of file diff --git a/src-tauri/src/github/pull_requests.rs b/src-tauri/src/github/pull_requests.rs index 8fc769f0..a7ac1fd2 100644 --- a/src-tauri/src/github/pull_requests.rs +++ b/src-tauri/src/github/pull_requests.rs @@ -60,8 +60,8 @@ struct ArtifactsResponse { #[derive(Serialize, Deserialize, Debug, Clone, TS)] #[ts(export)] pub enum PullRequestType { - MODS, - LAUNCHER, + Mods, + Launcher, } /// Parse pull requests from specified URL @@ -85,8 +85,8 @@ pub async fn get_pull_requests_wrapper( install_type: PullRequestType, ) -> Result<Vec<PullsApiResponseElement>, String> { let api_pr_url = match install_type { - PullRequestType::MODS => PULLS_API_ENDPOINT_MODS, - PullRequestType::LAUNCHER => PULLS_API_ENDPOINT_LAUNCHER, + PullRequestType::Mods => PULLS_API_ENDPOINT_MODS, + PullRequestType::Launcher => PULLS_API_ENDPOINT_LAUNCHER, }; get_pull_requests(api_pr_url.to_string()).await |