Update to the rustfmt in rust 1.31, which is now stable.
This commit is contained in:
@@ -231,7 +231,8 @@ impl Backend for FaerieBackend {
|
||||
from: name,
|
||||
to,
|
||||
at: u64::from(offset),
|
||||
}).map_err(|e| ModuleError::Backend(e.to_string()))?;
|
||||
})
|
||||
.map_err(|e| ModuleError::Backend(e.to_string()))?;
|
||||
}
|
||||
for &(offset, id, addend) in data_relocs {
|
||||
debug_assert_eq!(
|
||||
@@ -244,7 +245,8 @@ impl Backend for FaerieBackend {
|
||||
from: name,
|
||||
to,
|
||||
at: u64::from(offset),
|
||||
}).map_err(|e| ModuleError::Backend(e.to_string()))?;
|
||||
})
|
||||
.map_err(|e| ModuleError::Backend(e.to_string()))?;
|
||||
}
|
||||
|
||||
self.artifact
|
||||
@@ -410,7 +412,8 @@ impl<'a> RelocSink for FaerieRelocSink<'a> {
|
||||
reloc: raw_reloc,
|
||||
addend: addend_i32,
|
||||
},
|
||||
).expect("faerie relocation error");
|
||||
)
|
||||
.expect("faerie relocation error");
|
||||
}
|
||||
|
||||
fn reloc_jt(&mut self, _offset: CodeOffset, _reloc: Reloc, _jt: ir::JumpTable) {
|
||||
|
||||
@@ -9,10 +9,7 @@
|
||||
unstable_features
|
||||
)]
|
||||
#![warn(unused_import_braces)]
|
||||
#![cfg_attr(
|
||||
feature = "clippy",
|
||||
plugin(clippy(conf_file = "../../clippy.toml"))
|
||||
)]
|
||||
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))]
|
||||
#![cfg_attr(
|
||||
feature = "cargo-clippy",
|
||||
allow(new_without_default, new_without_default_derive)
|
||||
|
||||
Reference in New Issue
Block a user