Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
bytedream committed Apr 24, 2024
1 parent f31d548 commit 2b2a3e2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ impl From<reqwest::Error> 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,
Expand Down
1 change: 0 additions & 1 deletion src/media/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Profile> {
pub async fn new(&self, profile_name: String, username: String) -> Result<Self> {
let endpoint = "https://www.crunchyroll.com/accounts/v1/me/multiprofile";
self.executor
.post(endpoint)
Expand Down

0 comments on commit 2b2a3e2

Please sign in to comment.