From 2b2a3e292dbeed12bbcb70a9fac53b1b520ea00f Mon Sep 17 00:00:00 2001 From: bytedream Date: Thu, 25 Apr 2024 00:55:27 +0200 Subject: [PATCH] Make clippy happy --- src/error.rs | 1 + src/media/stream.rs | 1 - src/profile.rs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/error.rs b/src/error.rs index 42dc9b0..378ed6b 100644 --- a/src/error.rs +++ b/src/error.rs @@ -135,6 +135,7 @@ impl From for Error { pub(crate) fn is_request_error(value: Value, url: &str, status: &StatusCode) -> Result<()> { #[derive(Debug, Deserialize)] #[serde(untagged)] + #[allow(clippy::enum_variant_names)] enum ErrorTypes { MessageTypeError { message: String, diff --git a/src/media/stream.rs b/src/media/stream.rs index d4712cc..16d7260 100644 --- a/src/media/stream.rs +++ b/src/media/stream.rs @@ -6,7 +6,6 @@ use reqwest::StatusCode; use serde::{Deserialize, Deserializer, Serialize}; use std::collections::HashMap; use std::fmt::{Debug, Formatter}; -use std::io::Write; use std::iter; use std::sync::Arc; use std::time::Duration; diff --git a/src/profile.rs b/src/profile.rs index 8b0938d..0b38323 100644 --- a/src/profile.rs +++ b/src/profile.rs @@ -164,7 +164,7 @@ impl Profiles { /// Creates a new profile. It is not checked if the maximum amount of profiles is already /// reached. Use [`Profiles::max_profiles`] and the length of [`Profiles::profiles`] to check it /// manually. - pub async fn new(&self, profile_name: String, username: String) -> Result { + pub async fn new(&self, profile_name: String, username: String) -> Result { let endpoint = "https://www.crunchyroll.com/accounts/v1/me/multiprofile"; self.executor .post(endpoint)