Skip to content

Commit 95a9959

Browse files
committed
chore: fmt
1 parent 93176c7 commit 95a9959

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
lines changed

src/api/actor.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
use std::sync::Arc;
22

3-
use irpc::LocalSender;
4-
use irpc::WithChannels;
3+
use irpc::{LocalSender, WithChannels};
54
use n0_future::task::{self};
65
use tokio::sync::mpsc as tokio_mpsc;
76
use tracing::error;
87

9-
use crate::engine::Engine;
10-
118
use super::{
129
protocol::{DocsMessage, DocsService},
1310
DocsApi,
1411
};
12+
use crate::engine::Engine;
1513

1614
/// The docs RPC actor that handles incoming messages
1715
pub(crate) struct RpcActor {

src/api/api.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ use anyhow::{Context, Result};
88
use irpc::rpc::Handler;
99
use n0_future::task::{self, AbortOnDropHandle};
1010

11-
use crate::engine::Engine;
12-
11+
pub use self::client::*;
1312
use super::{
1413
actor::RpcActor,
1514
protocol::{DocsMessage, DocsProtocol, DocsService},
1615
};
17-
18-
pub use self::client::*;
16+
use crate::engine::Engine;
1917

2018
type Client = irpc::Client<DocsMessage, DocsProtocol, DocsService>;
2119

@@ -100,6 +98,7 @@ mod client {
10098
};
10199
use n0_future::{FutureExt, Stream, StreamExt};
102100

101+
use super::{Client, DocsApi};
103102
use crate::{
104103
actor::OpenState,
105104
api::protocol::{
@@ -116,8 +115,6 @@ mod client {
116115
Author, AuthorId, Capability, CapabilityKind, DocTicket, Entry, NamespaceId, PeerIdBytes,
117116
};
118117

119-
use super::{Client, DocsApi};
120-
121118
impl DocsApi {
122119
/// Creates a new document author.
123120
///

src/api/protocol.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use irpc::{
1111
};
1212
use serde::{Deserialize, Serialize};
1313

14+
use super::RpcResult;
1415
use crate::{
1516
actor::OpenState,
1617
engine::LiveEvent,
@@ -19,8 +20,6 @@ use crate::{
1920
SignedEntry,
2021
};
2122

22-
use super::RpcResult;
23-
2423
/// The RPC service type for the docs protocol.
2524
#[derive(Debug, Clone, Copy)]
2625
pub struct DocsService;

tests/client.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
#![cfg(feature = "rpc")]
2-
use self::util::{
3-
path::{key_to_path, path_to_key},
4-
Node,
5-
};
62
use anyhow::{Context, Result};
73
use futures_util::TryStreamExt;
84
use iroh_blobs::api::blobs::{ExportMode, ImportMode};
@@ -12,6 +8,11 @@ use testresult::TestResult;
128
use tokio::io::AsyncWriteExt;
139
use tracing_test::traced_test;
1410

11+
use self::util::{
12+
path::{key_to_path, path_to_key},
13+
Node,
14+
};
15+
1516
mod util;
1617

1718
/// Test that closing a doc does not close other instances.

0 commit comments

Comments
 (0)