Skip to content

Commit 94d3357

Browse files
Merge #283
283: Update object to 0.22.0 r=adamgreig a=jonas-schievink Co-authored-by: Jonas Schievink <[email protected]>
2 parents fd6a9db + 290755a commit 94d3357

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

xtask/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ harness = false
1313
ar = "0.8.0"
1414

1515
[dependencies.object]
16-
version = "0.21.1"
16+
version = "0.22.0"
1717
features = ["write"]

xtask/src/lib.rs

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@
44
//!
55
//! Also see the docs in `asm.rs`.
66
7-
use object::{
8-
read::{Object as _, ObjectSection as _},
9-
write::{Object, Symbol, SymbolSection},
10-
SymbolFlags,
11-
};
7+
use object::read::{Object as _, ObjectSection as _};
8+
use object::write::{Object, Symbol, SymbolSection};
9+
use object::{ObjectSymbol, SymbolFlags};
10+
use std::collections::BTreeMap;
1211
use std::env::current_dir;
13-
use std::{
14-
collections::BTreeMap,
15-
fs::{self, File},
16-
process::{Command, Stdio},
17-
};
12+
use std::fs::{self, File};
13+
use std::process::{Command, Stdio};
1814

1915
fn toolchain() -> String {
2016
fs::read_to_string("asm-toolchain")
@@ -78,7 +74,7 @@ fn trim_panic_handler(obj_file: &str) {
7874
writer.append_section_data(sec_id, section.data().unwrap(), align);
7975

8076
// Import all symbols from the section.
81-
for (_sym_idx, symbol) in obj.symbols() {
77+
for symbol in obj.symbols() {
8278
if symbol.section_index() == Some(section.index()) {
8379
writer.add_symbol(Symbol {
8480
name: symbol.name().unwrap_or("").as_bytes().to_vec(),

0 commit comments

Comments
 (0)