Skip to content

Commit

Permalink
fixup! WIP: Manual IntoJava impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Serock3 committed Jan 17, 2024
1 parent 06b5d75 commit 2da4bc0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions mullvad-types/src/states.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use crate::location::GeoIpLocation;
#[cfg(target_os = "android")]
use jnix::IntoJava;
use serde::{Deserialize, Serialize};
use std::fmt;
use talpid_types::{
Expand Down Expand Up @@ -86,7 +84,7 @@ where
let _final__0 = location.into_java(env);
let mut constructor_signature =
String::with_capacity(1 + _signature__0.as_bytes().len() + 2);
constructor_signature.push_str("(");
constructor_signature.push_str('(');
constructor_signature.push_str(_signature__0);
constructor_signature.push_str(")V");
let parameters = [jnix::AsJValue::as_jvalue(&_final__0)];
Expand All @@ -108,7 +106,7 @@ where
+ _signature_location.as_bytes().len()
+ 2,
);
constructor_signature.push_str("(");
constructor_signature.push_str('(');
constructor_signature.push_str(_signature_endpoint);
constructor_signature.push_str(_signature_location);
constructor_signature.push_str(")V");
Expand All @@ -134,7 +132,7 @@ where
+ _signature_location.as_bytes().len()
+ 2,
);
constructor_signature.push_str("(");
constructor_signature.push_str('(');
constructor_signature.push_str(_signature_endpoint);
constructor_signature.push_str(_signature_location);
constructor_signature.push_str(")V");
Expand All @@ -155,7 +153,7 @@ where
let _final__0 = action_after_disconnect.into_java(env);
let mut constructor_signature =
String::with_capacity(1 + _signature__0.as_bytes().len() + 2);
constructor_signature.push_str("(");
constructor_signature.push_str('(');
constructor_signature.push_str(_signature__0);
constructor_signature.push_str(")V");
let parameters = [jnix::AsJValue::as_jvalue(&_final__0)];
Expand All @@ -172,7 +170,7 @@ where
let _final__0 = error_state.into_java(env);
let mut constructor_signature =
String::with_capacity(1 + _signature__0.as_bytes().len() + 2);
constructor_signature.push_str("(");
constructor_signature.push_str('(');
constructor_signature.push_str(_signature__0);
constructor_signature.push_str(")V");
let parameters = [jnix::AsJValue::as_jvalue(&_final__0)];
Expand Down

0 comments on commit 2da4bc0

Please sign in to comment.