diff --git a/package.json b/package.json index c7ec261..e81a1f1 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,6 @@ "engines": { "node": ">= 16.0.0" }, - "packageManager": "^yarn@1.22.15", "jest": { "preset": "react-native", "modulePathIgnorePatterns": [ diff --git a/rust/src/lib.rs b/rust/src/lib.rs index b628235..da9ef11 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -335,7 +335,7 @@ fn opaque_start_client_registration( fn get_optional_string(ident: Vec) -> Result, Error> { match ident.len() { 0 => Ok(None), - 1 => ident.get(0).map_or_else( + 1 => ident.first().map_or_else( || { Err(Error::Input { message: "error getting value at index 0".to_string(),