Update code for Rust 1.83.0
Test: m rust Bug: 384401387 Change-Id: Id14002c889960c6c80d290090e329575fa363eff
This commit is contained in:
parent
ba7089227f
commit
1fd2b309e3
2 changed files with 2 additions and 0 deletions
|
|
@ -140,6 +140,7 @@ impl JavaPlatform {
|
|||
}
|
||||
|
||||
impl Platform for JavaPlatform {
|
||||
#[allow(clippy::unit_arg)]
|
||||
fn send_request(
|
||||
&mut self,
|
||||
connection_id: i32,
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ pub(crate) fn set_once(jvm: JavaVM) -> Result<()> {
|
|||
Ok(())
|
||||
}
|
||||
/// Gets a 'static reference to the unique JavaVM. Returns None if set_once() was never called.
|
||||
#[allow(static_mut_refs)]
|
||||
pub(crate) fn get_static_ref() -> Option<&'static Arc<JavaVM>> {
|
||||
// Safety: follows [this pattern](https://doc.rust-lang.org/std/sync/struct.Once.html).
|
||||
// Modification to static mut is nested inside call_once.
|
||||
|
|
|
|||
Loading…
Reference in a new issue