Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit c6827e2

Browse files
committed
Rustfmt
1 parent a07b310 commit c6827e2

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

crates/proc-macro-srv/src/abis/abi_1_63/proc_macro/bridge/client.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,9 @@ fn run_client<A: for<'a, 's> DecodeMut<'a, 's, ()>, R: Encode<()>>(
431431
}
432432

433433
impl Client<super::super::TokenStream, super::super::TokenStream> {
434-
pub const fn expand1(f: impl Fn(super::super::TokenStream) -> super::super::TokenStream + Copy) -> Self {
434+
pub const fn expand1(
435+
f: impl Fn(super::super::TokenStream) -> super::super::TokenStream + Copy,
436+
) -> Self {
435437
Client {
436438
get_handle_counters: HandleCounters::get,
437439
run: super::selfless_reify::reify_to_extern_c_fn_hrt_bridge(move |bridge| {
@@ -444,7 +446,8 @@ impl Client<super::super::TokenStream, super::super::TokenStream> {
444446

445447
impl Client<(super::super::TokenStream, super::super::TokenStream), super::super::TokenStream> {
446448
pub const fn expand2(
447-
f: impl Fn(super::super::TokenStream, super::super::TokenStream) -> super::super::TokenStream + Copy,
449+
f: impl Fn(super::super::TokenStream, super::super::TokenStream) -> super::super::TokenStream
450+
+ Copy,
448451
) -> Self {
449452
Client {
450453
get_handle_counters: HandleCounters::get,
@@ -469,7 +472,10 @@ pub enum ProcMacro {
469472

470473
Attr {
471474
name: &'static str,
472-
client: Client<(super::super::TokenStream, super::super::TokenStream), super::super::TokenStream>,
475+
client: Client<
476+
(super::super::TokenStream, super::super::TokenStream),
477+
super::super::TokenStream,
478+
>,
473479
},
474480

475481
Bang {
@@ -497,7 +503,8 @@ impl ProcMacro {
497503

498504
pub const fn attr(
499505
name: &'static str,
500-
expand: impl Fn(super::super::TokenStream, super::super::TokenStream) -> super::super::TokenStream + Copy,
506+
expand: impl Fn(super::super::TokenStream, super::super::TokenStream) -> super::super::TokenStream
507+
+ Copy,
501508
) -> Self {
502509
ProcMacro::Attr { name, client: Client::expand2(expand) }
503510
}

crates/proc-macro-srv/src/abis/abi_1_63/proc_macro/bridge/server.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,12 @@ impl client::Client<super::super::TokenStream, super::super::TokenStream> {
295295
}
296296
}
297297

298-
impl client::Client<(super::super::TokenStream, super::super::TokenStream), super::super::TokenStream> {
298+
impl
299+
client::Client<
300+
(super::super::TokenStream, super::super::TokenStream),
301+
super::super::TokenStream,
302+
>
303+
{
299304
pub fn run<S: Server>(
300305
&self,
301306
strategy: &impl ExecutionStrategy,

0 commit comments

Comments
 (0)