diff options
author | Laurențiu Nicola <[email protected]> | 2021-05-24 14:35:23 +0100 |
---|---|---|
committer | Laurențiu Nicola <[email protected]> | 2021-05-24 14:35:23 +0100 |
commit | d525cfc85a0fe798a85036543ccfa8858c4fbc04 (patch) | |
tree | 23a7a2ea2078c05b82df62cad68ca87966ae0512 /crates | |
parent | 47afa4a5fc18eb84c4838848f02eca655b0256d9 (diff) |
Bump object
Diffstat (limited to 'crates')
-rw-r--r-- | crates/proc_macro_api/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/proc_macro_srv/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/proc_macro_srv/src/dylib.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/crates/proc_macro_api/Cargo.toml b/crates/proc_macro_api/Cargo.toml index 2ce5eeedd..6fa880d61 100644 --- a/crates/proc_macro_api/Cargo.toml +++ b/crates/proc_macro_api/Cargo.toml | |||
@@ -16,7 +16,7 @@ log = "0.4.8" | |||
16 | crossbeam-channel = "0.5.0" | 16 | crossbeam-channel = "0.5.0" |
17 | jod-thread = "0.1.1" | 17 | jod-thread = "0.1.1" |
18 | memmap2 = "0.2.0" | 18 | memmap2 = "0.2.0" |
19 | object = { version = "0.23.0", default-features = false, features = ["std", "read_core", "elf", "macho", "pe", "unaligned"] } | 19 | object = { version = "0.24", default-features = false, features = ["std", "read_core", "elf", "macho", "pe", "unaligned"] } |
20 | snap = "1.0" | 20 | snap = "1.0" |
21 | 21 | ||
22 | tt = { path = "../tt", version = "0.0.0" } | 22 | tt = { path = "../tt", version = "0.0.0" } |
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" | |||
10 | doctest = false | 10 | doctest = false |
11 | 11 | ||
12 | [dependencies] | 12 | [dependencies] |
13 | object = { version = "0.23", default-features = false, features = ["std", "read_core", "elf", "macho", "pe"] } | 13 | object = { version = "0.24", default-features = false, features = ["std", "read_core", "elf", "macho", "pe"] } |
14 | libloading = "0.7.0" | 14 | libloading = "0.7.0" |
15 | memmap2 = "0.2.0" | 15 | memmap2 = "0.2.0" |
16 | 16 | ||
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<Option<String>> { | |||
27 | let file = File::open(file)?; | 27 | let file = File::open(file)?; |
28 | let buffer = unsafe { Mmap::map(&file)? }; | 28 | let buffer = unsafe { Mmap::map(&file)? }; |
29 | 29 | ||
30 | Ok(object::File::parse(&buffer) | 30 | Ok(object::File::parse(&*buffer) |
31 | .map_err(invalid_data_err)? | 31 | .map_err(invalid_data_err)? |
32 | .exports() | 32 | .exports() |
33 | .map_err(invalid_data_err)? | 33 | .map_err(invalid_data_err)? |