From 9ef1fa53c00150b3d835a053f54321824c099719 Mon Sep 17 00:00:00 2001 From: Claas Augner <495429+caugner@users.noreply.github.com> Date: Mon, 9 Sep 2024 13:19:34 +0200 Subject: [PATCH] chore(deps): bump rust from 1.76 to 1.81 (#555) --- .github/workflows/build-and-test.yml | 2 +- Cargo.toml | 2 +- src/api/ai_help.rs | 3 +-- src/api/play.rs | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 2f0f392c..ca592989 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -33,7 +33,7 @@ jobs: - name: Install Rust uses: actions-rs/toolchain@v1 with: - toolchain: 1.76.0 + toolchain: 1.81.0 override: true components: rustfmt, clippy - name: Cache Cargo registry diff --git a/Cargo.toml b/Cargo.toml index f6e4b715..36860017 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "rumba" version = "1.12.1" edition = "2021" -rust-version = "1.76" +rust-version = "1.81" [lib] path = "src/lib.rs" diff --git a/src/api/ai_help.rs b/src/api/ai_help.rs index 35b85b6b..994fc259 100644 --- a/src/api/ai_help.rs +++ b/src/api/ai_help.rs @@ -435,9 +435,8 @@ pub async fn ai_help( sse::Data::new_json(ai_help_meta).map_err(OpenAIError::JSONDeserialize) } .map(sse::Event::Data) - .map_err(|e| { + .inspect_err(|_e| { let _ = decrement_limit(&mut conn, &user); - e }); let refs = stream::once(async move { refs_sse_data }); diff --git a/src/api/play.rs b/src/api/play.rs index 0e3411a4..0befbe78 100644 --- a/src/api/play.rs +++ b/src/api/play.rs @@ -140,7 +140,7 @@ pub async fn create_flag_issue( .map(|p| p.flag_repo.as_str()) .ok_or(PlaygroundError::SettingsError)?; let issues = client.issues("mdn", repo); - let mut issue = issues.create(&format!("flag-{gist_id}")); + let mut issue = issues.create(format!("flag-{gist_id}")); if let Some(reason) = reason { issue = issue.body(&format!( "url: {}/en-US/play?id={}\n{reason}",