diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2022-06-08 14:22:17 +0000 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2022-06-08 14:22:17 +0000 |
| commit | c6827e2f47ade98794ba5c1eee3dae243b7d7c18 (patch) | |
| tree | 9857e5dd033c3072da2c95dd188d482bccf53d5d | |
| parent | a07b3103b1af4e5b3acd0eefbb090439008e4730 (diff) | |
| download | rust-c6827e2f47ade98794ba5c1eee3dae243b7d7c18.tar.gz rust-c6827e2f47ade98794ba5c1eee3dae243b7d7c18.zip | |
Rustfmt
| -rw-r--r-- | crates/proc-macro-srv/src/abis/abi_1_63/proc_macro/bridge/client.rs | 15 | ||||
| -rw-r--r-- | crates/proc-macro-srv/src/abis/abi_1_63/proc_macro/bridge/server.rs | 7 |
2 files changed, 17 insertions, 5 deletions
diff --git a/crates/proc-macro-srv/src/abis/abi_1_63/proc_macro/bridge/client.rs b/crates/proc-macro-srv/src/abis/abi_1_63/proc_macro/bridge/client.rs index ebc0f2ab4fb..abdd0486c7a 100644 --- a/crates/proc-macro-srv/src/abis/abi_1_63/proc_macro/bridge/client.rs +++ b/crates/proc-macro-srv/src/abis/abi_1_63/proc_macro/bridge/client.rs @@ -431,7 +431,9 @@ fn run_client<A: for<'a, 's> DecodeMut<'a, 's, ()>, R: Encode<()>>( } impl Client<super::super::TokenStream, super::super::TokenStream> { - pub const fn expand1(f: impl Fn(super::super::TokenStream) -> super::super::TokenStream + Copy) -> Self { + pub const fn expand1( + f: impl Fn(super::super::TokenStream) -> super::super::TokenStream + Copy, + ) -> Self { Client { get_handle_counters: HandleCounters::get, 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> { impl Client<(super::super::TokenStream, super::super::TokenStream), super::super::TokenStream> { pub const fn expand2( - f: impl Fn(super::super::TokenStream, super::super::TokenStream) -> super::super::TokenStream + Copy, + f: impl Fn(super::super::TokenStream, super::super::TokenStream) -> super::super::TokenStream + + Copy, ) -> Self { Client { get_handle_counters: HandleCounters::get, @@ -469,7 +472,10 @@ pub enum ProcMacro { Attr { name: &'static str, - client: Client<(super::super::TokenStream, super::super::TokenStream), super::super::TokenStream>, + client: Client< + (super::super::TokenStream, super::super::TokenStream), + super::super::TokenStream, + >, }, Bang { @@ -497,7 +503,8 @@ impl ProcMacro { pub const fn attr( name: &'static str, - expand: impl Fn(super::super::TokenStream, super::super::TokenStream) -> super::super::TokenStream + Copy, + expand: impl Fn(super::super::TokenStream, super::super::TokenStream) -> super::super::TokenStream + + Copy, ) -> Self { ProcMacro::Attr { name, client: Client::expand2(expand) } } diff --git a/crates/proc-macro-srv/src/abis/abi_1_63/proc_macro/bridge/server.rs b/crates/proc-macro-srv/src/abis/abi_1_63/proc_macro/bridge/server.rs index 97921822bb6..1662683914d 100644 --- a/crates/proc-macro-srv/src/abis/abi_1_63/proc_macro/bridge/server.rs +++ b/crates/proc-macro-srv/src/abis/abi_1_63/proc_macro/bridge/server.rs @@ -295,7 +295,12 @@ impl client::Client<super::super::TokenStream, super::super::TokenStream> { } } -impl client::Client<(super::super::TokenStream, super::super::TokenStream), super::super::TokenStream> { +impl + client::Client< + (super::super::TokenStream, super::super::TokenStream), + super::super::TokenStream, + > +{ pub fn run<S: Server>( &self, strategy: &impl ExecutionStrategy, |
