File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -162,18 +162,18 @@ impl InvocationArg {
162162 fn make_primitive ( & mut self ) -> errors:: Result < ( ) > {
163163 match utils:: primitive_of ( self ) {
164164 Some ( primitive_repr) => {
165- match self {
166- & mut InvocationArg :: Java {
165+ match * self {
166+ InvocationArg :: Java {
167167 instance : _,
168168 ref mut class_name,
169169 serialized : _,
170170 } => * class_name = primitive_repr,
171- & mut InvocationArg :: Rust {
171+ InvocationArg :: Rust {
172172 json : _,
173173 ref mut class_name,
174174 serialized : _,
175175 } => * class_name = primitive_repr,
176- & mut InvocationArg :: RustBasic {
176+ InvocationArg :: RustBasic {
177177 instance : _,
178178 ref mut class_name,
179179 serialized : _,
Original file line number Diff line number Diff line change @@ -1801,7 +1801,8 @@ impl<'a> JvmBuilder<'a> {
18011801 ///
18021802 /// If not, you will get exceptions like the following:
18031803 ///
1804- /// > java.lang.NoSuchMethodError: java.net.URLClassLoader.`<init>`(Ljava/lang/String;[Ljava/net/URL;Ljava/lang/ClassLoader;)V
1804+ /// ```text
1805+ /// java.lang.NoSuchMethodError: java.net.URLClassLoader.`<init>`(Ljava/lang/String;[Ljava/net/URL;Ljava/lang/ClassLoader;)V
18051806 /// at org.astonbitecode.j4rs.api.deploy.J4rsClassLoader.`<init>`(J4rsClassLoader.java:22)
18061807 /// at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
18071808 /// at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
@@ -1812,6 +1813,7 @@ impl<'a> JvmBuilder<'a> {
18121813 /// at java.security.AccessController.doPrivileged(Native Method)
18131814 /// at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1449)
18141815 /// at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1429)
1816+ /// ```
18151817 pub fn with_default_classloader ( & ' a mut self ) -> & ' a mut JvmBuilder {
18161818 self . default_classloader = true ;
18171819 self
You can’t perform that action at this time.
0 commit comments