From 06f4ca6efa1305362b9f0824bf42d4b0a7037014 Mon Sep 17 00:00:00 2001 From: Sam Wilson Date: Thu, 13 Jun 2024 09:41:12 -0400 Subject: [PATCH] Run cargo fmt & clippy --- tests/generate_release_notes_test.rs | 2 +- tests/user_deserialize_test.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/generate_release_notes_test.rs b/tests/generate_release_notes_test.rs index 0e80d6f2..ac1350d4 100644 --- a/tests/generate_release_notes_test.rs +++ b/tests/generate_release_notes_test.rs @@ -57,5 +57,5 @@ async fn should_return_page_with_check_runs() { let response = result.unwrap(); assert_eq!(response.name, tag_name); - assert_eq!(response.body.is_empty(), false); + assert!(!response.body.is_empty()); } diff --git a/tests/user_deserialize_test.rs b/tests/user_deserialize_test.rs index 11e70281..c91d8b26 100644 --- a/tests/user_deserialize_test.rs +++ b/tests/user_deserialize_test.rs @@ -2,9 +2,7 @@ mod mock_error; use mock_error::setup_error_handler; use octocrab::models::UserProfile; -use octocrab::{Error, Octocrab}; -use serde::{Deserialize, Serialize}; -use serde_json::{json, Value}; +use octocrab::Octocrab; use wiremock::{ matchers::{method, path}, Mock, MockServer, ResponseTemplate,