diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-02-08 22:12:13 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-02-08 22:12:13 +0000 |
| commit | 6bd92ef9cb41246f2ed5d65d52c8dccb694f3990 (patch) | |
| tree | ee91943bd38862ba527c920e22aab9c7d68e56c0 /src/debuginfo | |
| parent | 04e580fcc50f54bc49a44dbf9ef386f88b41a291 (diff) | |
Rustfmt
Diffstat (limited to 'src/debuginfo')
| -rw-r--r-- | src/debuginfo/object.rs | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/debuginfo/object.rs b/src/debuginfo/object.rs index 048a388731f..1c6e471cc87 100644 --- a/src/debuginfo/object.rs +++ b/src/debuginfo/object.rs @@ -73,16 +73,19 @@ impl WriteDebugInfo for ObjectProduct { } }; self.object - .add_relocation(from.0, Relocation { - offset: u64::from(reloc.offset), - symbol, - flags: RelocationFlags::Generic { - kind: reloc.kind, - encoding: RelocationEncoding::Generic, - size: reloc.size * 8, + .add_relocation( + from.0, + Relocation { + offset: u64::from(reloc.offset), + symbol, + flags: RelocationFlags::Generic { + kind: reloc.kind, + encoding: RelocationEncoding::Generic, + size: reloc.size * 8, + }, + addend: i64::try_from(symbol_offset).unwrap() + reloc.addend, }, - addend: i64::try_from(symbol_offset).unwrap() + reloc.addend, - }) + ) .unwrap(); } } |
