diff --git a/crates/drift-ffi-sys b/crates/drift-ffi-sys index 719a0f9..e89bb91 160000 --- a/crates/drift-ffi-sys +++ b/crates/drift-ffi-sys @@ -1 +1 @@ -Subproject commit 719a0f9511a5bb49228841ff1e3c500025dfcc40 +Subproject commit e89bb91e86b506c909b953f820d157fa1b5b0f2a diff --git a/crates/src/drift_idl.rs b/crates/src/drift_idl.rs index 97d721c..edcb4ab 100644 --- a/crates/src/drift_idl.rs +++ b/crates/src/drift_idl.rs @@ -2,6 +2,7 @@ #![doc = r""] #![doc = r" Auto-generated IDL types, manual edits do not persist (see `crates/drift-idl-gen`)"] #![doc = r""] +use self::traits::ToAccountMetas; use anchor_lang::{ prelude::{ account, @@ -12,8 +13,6 @@ use anchor_lang::{ }; use serde::{Deserialize, Serialize}; use solana_sdk::{instruction::AccountMeta, pubkey::Pubkey}; - -use self::traits::ToAccountMetas; pub mod traits { use solana_sdk::instruction::AccountMeta; #[doc = r" This is distinct from the anchor_lang version of the trait"] @@ -1891,9 +1890,8 @@ pub mod instructions { } pub mod types { #![doc = r" IDL types"] - use std::ops::Mul; - use super::*; + use std::ops::Mul; #[doc = ""] #[doc = " backwards compatible u128 deserializing data from rust <=1.76.0 when u/i128 was 8-byte aligned"] #[doc = " https://solana.stackexchange.com/questions/7720/using-u128-without-sacrificing-alignment-8"] diff --git a/crates/src/slot_subscriber.rs b/crates/src/slot_subscriber.rs index c4b3f19..aaa3401 100644 --- a/crates/src/slot_subscriber.rs +++ b/crates/src/slot_subscriber.rs @@ -46,7 +46,7 @@ impl SlotSubscriber { *slot_guard } - pub async fn subscribe(&mut self, handler_fn: F) -> SdkResult<()> + pub async fn subscribe(&self, handler_fn: F) -> SdkResult<()> where F: 'static + Send + Fn(SlotUpdate), { @@ -57,7 +57,7 @@ impl SlotSubscriber { Ok(()) } - async fn subscribe_ws(&mut self, handler_fn: F) -> SdkResult<()> + async fn subscribe_ws(&self, handler_fn: F) -> SdkResult<()> where F: 'static + Send + Fn(SlotUpdate), {