Rust fmt fixes
This commit is contained in:
@@ -47,7 +47,7 @@ pub struct DataDescription {
|
||||
/// Data addresses to write at specified offsets.
|
||||
pub data_relocs: Vec<(CodeOffset, ir::GlobalValue, Addend)>,
|
||||
/// Object file section
|
||||
pub section: Option<(std::string::String, std::string::String)>
|
||||
pub section: Option<(std::string::String, std::string::String)>,
|
||||
}
|
||||
|
||||
/// This is to data objects what cranelift_codegen::Context is to functions.
|
||||
@@ -65,7 +65,7 @@ impl DataContext {
|
||||
data_decls: PrimaryMap::new(),
|
||||
function_relocs: vec![],
|
||||
data_relocs: vec![],
|
||||
section: None
|
||||
section: None,
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -95,7 +95,10 @@ impl DataContext {
|
||||
|
||||
/// Override the segment/section for data, only supported on Object backend
|
||||
pub fn set_section(&mut self, seg: &str, sec: &str) {
|
||||
self.description.section = Some((std::string::String::from(seg), std::string::String::from(sec)))
|
||||
self.description.section = Some((
|
||||
std::string::String::from(seg),
|
||||
std::string::String::from(sec),
|
||||
))
|
||||
}
|
||||
|
||||
/// Declare an external function import.
|
||||
|
||||
Reference in New Issue
Block a user