Fix clippy warnings.
This commit fixes the current set of (stable) clippy warnings in the repo.
This commit is contained in:
committed by
Andrew Brown
parent
1176e4f178
commit
9f506692c2
@@ -327,7 +327,7 @@ impl Backend for ObjectBackend {
|
||||
addend,
|
||||
} in &func.relocs
|
||||
{
|
||||
let offset = func.offset + offset as u64;
|
||||
let offset = func.offset + u64::from(offset);
|
||||
let symbol = self.get_symbol(namespace, name);
|
||||
self.object
|
||||
.add_relocation(
|
||||
@@ -364,7 +364,7 @@ impl Backend for ObjectBackend {
|
||||
addend,
|
||||
} in &data.relocs
|
||||
{
|
||||
let offset = data.offset + offset as u64;
|
||||
let offset = data.offset + u64::from(offset);
|
||||
let symbol = self.get_symbol(namespace, name);
|
||||
self.object
|
||||
.add_relocation(
|
||||
|
||||
Reference in New Issue
Block a user