Skip to content

Commit

Permalink
Fix cargo fmt --check
Browse files Browse the repository at this point in the history
  • Loading branch information
glyn committed Jan 23, 2025
1 parent af0b81f commit 049adab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ipc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ where
///
/// [IpcSender]: struct.IpcSender.html
/// [IpcOneShotServer]: struct.IpcOneShotServer.html
#[deprecated(since="0.20.0", note="please use `new_with_connector` instead")]
#[deprecated(since = "0.20.0", note = "please use `new_with_connector` instead")]
pub fn connect(name: String) -> Result<IpcSender<T>, io::Error> {
Ok(IpcSender {
os_sender: OsIpcSender::connect(name)?,
Expand Down Expand Up @@ -876,7 +876,7 @@ impl<T> IpcOneShotServer<T>
where
T: for<'de> Deserialize<'de> + Serialize,
{
#[deprecated(since="0.20.0", note="please use `new_with_connector` instead")]
#[deprecated(since = "0.20.0", note = "please use `new_with_connector` instead")]
pub fn new() -> Result<(IpcOneShotServer<T>, String), io::Error> {
let (os_server, name) = OsIpcOneShotServer::new()?;
Ok((
Expand All @@ -900,7 +900,6 @@ where
phantom: PhantomData,
},
))

}

pub fn accept(self) -> Result<(IpcReceiver<T>, T), bincode::Error> {
Expand Down

0 comments on commit 049adab

Please sign in to comment.