Update to the rustfmt in rust 1.31, which is now stable.

This commit is contained in:
Dan Gohman
2018-12-06 16:15:48 -05:00
parent 323a9925e5
commit 5adab629f2
43 changed files with 181 additions and 177 deletions

View File

@@ -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) {

View File

@@ -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)