diff options
author | 2020-11-02 21:29:35 +0100 | |
---|---|---|
committer | 2020-11-02 21:29:35 +0100 | |
commit | 290755a90daf5e6813a1926216da244cbd0dc4ac (patch) | |
tree | 1cd46cb42dae978088475414e2c048c5584ee2a6 /xtask/src/lib.rs | |
parent | fd6a9dbdab0a9c1b377c04a2820324cd8337706f (diff) | |
download | cortex-m-290755a90daf5e6813a1926216da244cbd0dc4ac.tar.gz cortex-m-290755a90daf5e6813a1926216da244cbd0dc4ac.tar.zst cortex-m-290755a90daf5e6813a1926216da244cbd0dc4ac.zip |
Update object to 0.22.0
Diffstat (limited to 'xtask/src/lib.rs')
-rw-r--r-- | xtask/src/lib.rs | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs index 3ff66e8..2ac15a4 100644 --- a/xtask/src/lib.rs +++ b/xtask/src/lib.rs @@ -4,17 +4,13 @@ //! //! Also see the docs in `asm.rs`. -use object::{ - read::{Object as _, ObjectSection as _}, - write::{Object, Symbol, SymbolSection}, - SymbolFlags, -}; +use object::read::{Object as _, ObjectSection as _}; +use object::write::{Object, Symbol, SymbolSection}; +use object::{ObjectSymbol, SymbolFlags}; +use std::collections::BTreeMap; use std::env::current_dir; -use std::{ - collections::BTreeMap, - fs::{self, File}, - process::{Command, Stdio}, -}; +use std::fs::{self, File}; +use std::process::{Command, Stdio}; fn toolchain() -> String { fs::read_to_string("asm-toolchain") @@ -78,7 +74,7 @@ fn trim_panic_handler(obj_file: &str) { writer.append_section_data(sec_id, section.data().unwrap(), align); // Import all symbols from the section. - for (_sym_idx, symbol) in obj.symbols() { + for symbol in obj.symbols() { if symbol.section_index() == Some(section.index()) { writer.add_symbol(Symbol { name: symbol.name().unwrap_or("").as_bytes().to_vec(), |