Skip to content

Commit

Permalink
style: fmt with nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
saying121 committed Oct 26, 2024
1 parent e20e75a commit 6edc08c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion crates/decrypt-cookies/src/chromium/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl<T: Send + Sync> ChromiumGetter<T> {
/// .await
/// .unwrap();
/// let res = edge_getter
/// .get_cookies_filter(ChromiumCookieCol::HostKey.contains("google.com") )
/// .get_cookies_filter(ChromiumCookieCol::HostKey.contains("google.com"))
/// .await
/// .unwrap_or_default();
/// dbg!(res);
Expand Down
12 changes: 6 additions & 6 deletions crates/decrypt-cookies/src/utils/binary_cookies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,12 @@ pub struct SafariCookie {
pub same_site: SameSite,
pub is_secure: bool,
pub is_httponly: bool,
pub has_port: [u8; 4], // size: 4 byte 0 or 1
pub domain_offset: u32, // LE_uint32 Cookie domain offset
pub name_offset: u32, // LE_uint32 Cookie name offset
pub path_offset: u32, // LE_uint32 Cookie path offset
pub value_offset: u32, // LE_uint32 Cookie value offset
pub comment_offset: u32, // LE_uint32 Cookie comment offset
pub has_port: [u8; 4], // size: 4 byte 0 or 1
pub domain_offset: u32, // LE_uint32 Cookie domain offset
pub name_offset: u32, // LE_uint32 Cookie name offset
pub path_offset: u32, // LE_uint32 Cookie path offset
pub value_offset: u32, // LE_uint32 Cookie value offset
pub comment_offset: u32, // LE_uint32 Cookie comment offset
// end_header: Vec<u8>, /* 4 byte Marks the end of a header. Must be equal to []byte{0x00000000} */
pub expires: Option<DateTime<Utc>>, /* float64 Cookie expiration time in Mac epoch time. Add 978307200 to turn into Unix */
pub creation: Option<DateTime<Utc>>, /* float64 Cookie creation time in Mac epoch time. Add 978307200 to turn into Unix */
Expand Down
2 changes: 1 addition & 1 deletion crates/decrypt-cookies/tests/cookies_work.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use anyhow::Result;
use decrypt_cookies::{
browser::{Chrome, Firefox},
prelude::*,
};
use anyhow::Result;

#[ignore = "need realy environment"]
#[tokio::test]
Expand Down

0 comments on commit 6edc08c

Please sign in to comment.