Skip to content

Commit

Permalink
Remove unnecessary reference
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasm-dev committed Jul 26, 2023
1 parent 6faeefa commit a808ab1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "jnat"
version = "0.7.1"
version = "0.7.2"
edition = "2021"
license = "MIT"
description = "A wrapper around the jni crate"
Expand Down
2 changes: 1 addition & 1 deletion src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl<'a> Env<'a> {
/// # Arguments
///
/// * `string` - The JString to convert
pub fn get_string(&'a self, string: &'a JString<'a>) -> Result<String, Error> {
pub fn get_string(&'a self, string: JString<'a>) -> Result<String, Error> {
let mut jni_env = self.get_jni_env();
Ok(jni_env.get_string(&string)?.into())
}
Expand Down

0 comments on commit a808ab1

Please sign in to comment.