Skip to content

Commit

Permalink
fix(clippy): fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
saying121 committed Aug 29, 2024
1 parent b76694e commit 9167e54
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/decrypt-cookies/src/browser/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ pub mod macos {
use super::{ChromiumInfo, FfInfo, TempPath};
use crate::Browser;

#[allow(clippy::exhaustive_structs)]
#[derive(Clone)]
#[derive(Debug)]
#[derive(Default)]
Expand Down
3 changes: 2 additions & 1 deletion crates/decrypt-cookies/src/safari/items/cookie/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use crate::{
LeetCodeCookies,
};

#[non_exhaustive]
#[derive(Clone)]
#[derive(Debug)]
#[derive(Default)]
Expand All @@ -32,7 +33,7 @@ impl CookiesGetter {

pub async fn build<T>(cookies_path: Option<T>) -> Result<Self>
where
T: Into<PathBuf>,
T: Into<PathBuf> + Send,
{
let mut cookie_path;
if let Some(path) = cookies_path {
Expand Down
1 change: 1 addition & 0 deletions crates/decrypt-cookies/src/safari/utils/binary_cookies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ impl BinaryCookies {
const PAGE_START_HEADER: [u8; 4] = [0x00, 0x00, 0x01, 0x00];
const END_HEADER: [u8; 4] = [0x00, 0x00, 0x00, 0x00];

#[allow(clippy::panic_in_result_fn)]
// raw data and some unnecessary data
pub fn parse(file: &[u8]) -> Result<Self> {
let mut entry = file;
Expand Down

0 comments on commit 9167e54

Please sign in to comment.