1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-03 02:03:53 +00:00

Fix errors

This commit is contained in:
Bernd Schoolmann
2025-10-16 14:36:24 +02:00
parent d524785376
commit c7be485de8
3 changed files with 13 additions and 4 deletions

View File

@@ -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 {}

View File

@@ -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 {

View File

@@ -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;