style: fmt the project (#54)
add rustfmt.toml Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
This commit is contained in:
parent
59bfb6e748
commit
0a2f13a1f4
3 changed files with 158 additions and 132 deletions
|
|
@ -1,15 +1,17 @@
|
|||
cargo-features = ["edition2024"]
|
||||
|
||||
[package]
|
||||
name = "transport"
|
||||
edition.workspace = true
|
||||
version.workspace = true
|
||||
authors.workspace = true
|
||||
license.workspace = true
|
||||
repository.workspace = true
|
||||
description.workspace = true
|
||||
keywords.workspace = true
|
||||
homepage.workspace = true
|
||||
categories.workspace = true
|
||||
readme.workspace = true
|
||||
edition = { workspace = true }
|
||||
version = { workspace = true }
|
||||
authors = { workspace = true }
|
||||
license = { workspace = true }
|
||||
repository = { workspace = true }
|
||||
description = { workspace = true }
|
||||
keywords = { workspace = true }
|
||||
homepage = { workspace = true }
|
||||
categories = { workspace = true }
|
||||
readme = { workspace = true }
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
use std::fs;
|
||||
|
||||
use common::calculator::Calculator;
|
||||
use rmcp::{serve_client, serve_server};
|
||||
use std::fs;
|
||||
use tokio::net::{UnixListener, UnixStream};
|
||||
|
||||
mod common;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ use std::marker::PhantomData;
|
|||
|
||||
use common::calculator::Calculator;
|
||||
use futures::{Sink, Stream};
|
||||
|
||||
use rmcp::{
|
||||
RoleClient, RoleServer, ServiceExt,
|
||||
service::{RunningService, RxJsonRpcMessage, ServiceRole, TxJsonRpcMessage},
|
||||
|
|
|
|||
Loading…
Reference in a new issue