fix compile error
This commit is contained in:
parent
20fc294a36
commit
0d026373db
4 changed files with 17 additions and 8 deletions
|
|
@ -10,8 +10,8 @@ use syn::parse::{Parse, ParseStream};
|
|||
use syn::punctuated::Punctuated;
|
||||
use syn::spanned::Spanned;
|
||||
use syn::{
|
||||
parse_macro_input, Attribute, Data, DataStruct, DeriveInput, Fields, FnArg, LitInt, Pat, Token,
|
||||
TraitItem,
|
||||
parse_macro_input, Attribute, Data, DataStruct, DeriveInput, Fields, FnArg, Lit, LitInt,
|
||||
LitStr, Pat, Token, TraitItem,
|
||||
};
|
||||
|
||||
struct ProtoInputParams {
|
||||
|
|
@ -400,6 +400,10 @@ pub fn rmc_serialize(input: TokenStream) -> TokenStream {
|
|||
|
||||
// generate base data
|
||||
|
||||
let str_name = Lit::Str(LitStr::new(
|
||||
&derive_input.ident.to_string(),
|
||||
derive_input.ident.span(),
|
||||
));
|
||||
let ident = derive_input.ident;
|
||||
|
||||
let tokens = quote! {
|
||||
|
|
@ -414,6 +418,10 @@ pub fn rmc_serialize(input: TokenStream) -> TokenStream {
|
|||
}
|
||||
|
||||
#write_size
|
||||
|
||||
fn name() -> &'static str{
|
||||
#str_name
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ impl<C: Crypto> Server<C> {
|
|||
};
|
||||
info!("send attempt {}", n);
|
||||
|
||||
self.socket
|
||||
this.socket
|
||||
.send_to(&data, conn.addr.regular_socket_addr)
|
||||
.await;
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,9 @@ use tokio::net::TcpListener;
|
|||
|
||||
use crate::{
|
||||
executables::common::{OWN_IP_PRIVATE, SERVER_PORT, new_simple_backend},
|
||||
nex::friends_handler::{FriendsGuest, FriendsManager, FriendsUser, RemoteFriendsUser},
|
||||
nex::friends_handler::{
|
||||
FriendsGuest, FriendsManager, FriendsUser, RemoteFriendRemote, RemoteFriendsUser,
|
||||
},
|
||||
reggie::UnitPacketRead,
|
||||
rmc::{
|
||||
protocols::{
|
||||
|
|
@ -59,7 +61,7 @@ pub async fn start_friends_backend() {
|
|||
data: Default::default(),
|
||||
current_friends: Default::default(),
|
||||
this: this.clone(),
|
||||
remote: RemoteFriendsUser::new(r),
|
||||
remote: RemoteFriendRemote::new(r),
|
||||
})
|
||||
});
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -37,9 +37,8 @@ use rnex_core::rmc::protocols::friends::{GameKey, MiiV2, PrincipalBasicInfo};
|
|||
|
||||
use rnex_core::PID;
|
||||
|
||||
use crate::nex::user;
|
||||
use crate::rmc::protocols::account_management::NintendoCreateAccountData;
|
||||
use crate::rmc::protocols::nintendo_notification::NintendoNotificationEvent;
|
||||
use rnex_core::rmc::protocols::account_management::NintendoCreateAccountData;
|
||||
use rnex_core::rmc::protocols::nintendo_notification::NintendoNotificationEvent;
|
||||
use rnex_core::rmc::structures::RmcSerialize;
|
||||
|
||||
define_rmc_proto!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue