Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions omnisette/src/aos_kit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ pub struct AOSKitAnisetteProvider<'lt> {
ak_device: &'lt Class,
}

use crate::AnisetteError;

impl<'lt> AOSKitAnisetteProvider<'lt> {
pub fn new() -> Result<AOSKitAnisetteProvider<'lt>> {
Library::open("/System/Library/PrivateFrameworks/AOSKit.framework/AOSKit")?;
Expand All @@ -23,13 +25,13 @@ impl<'lt> AOSKitAnisetteProvider<'lt> {
}
}

#[cfg_attr(feature = "async", async_trait::async_trait(?Send))]
#[cfg_attr(feature = "async", async_trait::async_trait)]
impl<'lt> AnisetteHeadersProvider for AOSKitAnisetteProvider<'lt> {
#[cfg_attr(not(feature = "async"), remove_async_await::remove_async_await)]
async fn get_anisette_headers(
&mut self,
_skip_provisioning: bool,
) -> Result<HashMap<String, String>> {
) -> Result<HashMap<String, String>, AnisetteError> {
let mut headers_map = HashMap::new();

let headers: *const NSObject = unsafe {
Expand Down
Loading