Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Joylei committed Apr 16, 2022
1 parent 26014b8 commit ca4edb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/adapters/eip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ where
T: AsyncRead + AsyncWrite + Unpin + Send + Sync,
{
/// context is open?
fn is_open(&mut self) -> bool {
fn is_open(&self) -> bool {
self.session_handle().is_some()
}

Expand Down
2 changes: 1 addition & 1 deletion src/adapters/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use rseip_core::codec::{Decode, Encode};
#[async_trait::async_trait]
pub trait Service: Send + Sync {
/// context is open?
fn is_open(&mut self) -> bool;
fn is_open(&self) -> bool;

/// open context, eg register session for EIP
async fn open(&mut self) -> Result<()>;
Expand Down

0 comments on commit ca4edb0

Please sign in to comment.