fix cmt and identation

This commit is contained in:
vms 2019-03-29 00:35:08 +03:00
parent 4ac9dccc7d
commit 3c8851a5b2
2 changed files with 3 additions and 3 deletions

View File

@ -766,7 +766,7 @@ mod integration_tests {
Section::Name(ref name_section) => { Section::Name(ref name_section) => {
let function_name_subsection = name_section let function_name_subsection = name_section
.function_name_subsection() .function_name_subsection()
.expect("function_name_subsection should presence"); .expect("function_name_subsection should be present");
assert_eq!( assert_eq!(
function_name_subsection.names().get(0).expect("Should be entry #0"), function_name_subsection.names().get(0).expect("Should be entry #0"),
"elog" "elog"

View File

@ -24,8 +24,8 @@ pub struct NameSection {
impl NameSection { impl NameSection {
/// Creates a new name section. /// Creates a new name section.
pub fn new(module_name_subsection: Option<ModuleNameSubsection>, pub fn new(module_name_subsection: Option<ModuleNameSubsection>,
function_name_subsection: Option<FunctionNameSubsection>, function_name_subsection: Option<FunctionNameSubsection>,
local_name_subsection: Option<LocalNameSubsection>) -> Self { local_name_subsection: Option<LocalNameSubsection>) -> Self {
Self { Self {
module_name_subsection, module_name_subsection,
function_name_subsection, function_name_subsection,