mirror of
https://github.com/bitwarden/browser
synced 2026-02-03 02:03:53 +00:00
Fix errors
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
use crate::{agent::BitwardenDesktopAgent, transport::named_pipe_listener_stream::NamedPipeServerStream};
|
||||
use crate::agent::BitwardenDesktopAgent;
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
use crate::transport::named_pipe_listener_stream::NamedPipeServerStream;
|
||||
#[cfg(any(target_os = "linux", target_os = "macos"))]
|
||||
use crate::transport::unix_listener_stream::UnixListenerStream;
|
||||
#[cfg(any(target_os = "linux", target_os = "macos"))]
|
||||
use homedir::my_home;
|
||||
#[cfg(any(target_os = "linux", target_os = "macos"))]
|
||||
use tracing::info;
|
||||
|
||||
pub struct PlatformListener {}
|
||||
|
||||
|
||||
@@ -67,6 +67,7 @@ impl Signature {
|
||||
Ok(buffer)
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
pub(crate) fn verify(
|
||||
&self,
|
||||
public_key: &PublicKey,
|
||||
@@ -155,7 +156,6 @@ impl Signature {
|
||||
})?;
|
||||
Ok(true)
|
||||
}
|
||||
_ => Ok(false),
|
||||
}
|
||||
}
|
||||
_ => Ok(false),
|
||||
@@ -187,7 +187,7 @@ impl TryFrom<&[u8]> for Signature {
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub(super) struct SessionId(Vec<u8>);
|
||||
pub struct SessionId(Vec<u8>);
|
||||
|
||||
impl From<Vec<u8>> for SessionId {
|
||||
fn from(v: Vec<u8>) -> Self {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#[cfg(windows)]
|
||||
pub mod named_pipe_listener_stream;
|
||||
pub mod peer_info;
|
||||
#[cfg(not(windows))]
|
||||
pub mod unix_listener_stream;
|
||||
pub mod peer_info;
|
||||
|
||||
Reference in New Issue
Block a user