From d525cfc85a0fe798a85036543ccfa8858c4fbc04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 24 May 2021 16:35:23 +0300 Subject: Bump object --- crates/proc_macro_srv/Cargo.toml | 2 +- crates/proc_macro_srv/src/dylib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/proc_macro_srv') diff --git a/crates/proc_macro_srv/Cargo.toml b/crates/proc_macro_srv/Cargo.toml index 63b3f1532..4ea41175e 100644 --- a/crates/proc_macro_srv/Cargo.toml +++ b/crates/proc_macro_srv/Cargo.toml @@ -10,7 +10,7 @@ edition = "2018" doctest = false [dependencies] -object = { version = "0.23", default-features = false, features = ["std", "read_core", "elf", "macho", "pe"] } +object = { version = "0.24", default-features = false, features = ["std", "read_core", "elf", "macho", "pe"] } libloading = "0.7.0" memmap2 = "0.2.0" diff --git a/crates/proc_macro_srv/src/dylib.rs b/crates/proc_macro_srv/src/dylib.rs index baf10fea9..cccc53220 100644 --- a/crates/proc_macro_srv/src/dylib.rs +++ b/crates/proc_macro_srv/src/dylib.rs @@ -27,7 +27,7 @@ fn find_registrar_symbol(file: &Path) -> io::Result> { let file = File::open(file)?; let buffer = unsafe { Mmap::map(&file)? }; - Ok(object::File::parse(&buffer) + Ok(object::File::parse(&*buffer) .map_err(invalid_data_err)? .exports() .map_err(invalid_data_err)? -- cgit v1.2.3 From 741f47f208e7b471c1b03b3b09317612b3f9dd85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 24 May 2021 16:59:06 +0300 Subject: Update test fixtures --- crates/proc_macro_srv/src/tests/fixtures/test_serialize_proc_macro.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/proc_macro_srv') diff --git a/crates/proc_macro_srv/src/tests/fixtures/test_serialize_proc_macro.txt b/crates/proc_macro_srv/src/tests/fixtures/test_serialize_proc_macro.txt index fa581f110..eb67c7134 100644 --- a/crates/proc_macro_srv/src/tests/fixtures/test_serialize_proc_macro.txt +++ b/crates/proc_macro_srv/src/tests/fixtures/test_serialize_proc_macro.txt @@ -23,7 +23,7 @@ SUBTREE $ SUBTREE [] 4294967295 IDENT allow 4294967295 SUBTREE () 4294967295 - IDENT rust_2018_idioms 4294967295 + IDENT unused_extern_crates 4294967295 PUNCH , [alone] 4294967295 IDENT clippy 4294967295 PUNCH : [joint] 4294967295 -- cgit v1.2.3