From 63887c0967ba1672b27aa3fac117a30ad72e999b Mon Sep 17 00:00:00 2001 From: GeekMasher Date: Fri, 1 Nov 2024 09:36:10 +0000 Subject: [PATCH] feat: Update to Octocrab 0.41 --- Cargo.toml | 4 ++-- src/config.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index afe6735..339248b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,9 +29,9 @@ rocket = ["dep:rocket", "octocrab"] thiserror = "1" serde = { version = "1.0", features = ["derive"] } serde_json = "1" -tracing = "0.1.40" +tracing = "0.1" jsonwebtoken = "9.3" -octocrab = { version = "^0.39", optional = true } +octocrab = { version = "^0.41", optional = true } # Signature verification hmac = "0.12" sha2 = "0.10" diff --git a/src/config.rs b/src/config.rs index e367e7b..80bf696 100644 --- a/src/config.rs +++ b/src/config.rs @@ -127,7 +127,7 @@ impl OctoAppConfig { Ok(octocrab::Octocrab::builder() .app(octocrab::models::AppId(self.app_id as u64), key.clone()) .build()? - .installation(octocrab::models::InstallationId(*installation_id))) + .installation(octocrab::models::InstallationId(*installation_id))?) } else { Err(crate::OctoAppError::MissingField( "Client Private Key".to_string(), @@ -147,7 +147,7 @@ impl OctoAppConfig { Ok(octocrab::OctocrabBuilder::new() .app(octocrab::models::AppId(self.app_id as u64), key.clone()) .build()? - .installation(inst.id)) + .installation(inst.id)?) } else { Ok(octocrab::OctocrabBuilder::new() .app(octocrab::models::AppId(self.app_id as u64), key.clone())