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) => {
let function_name_subsection = name_section
.function_name_subsection()
.expect("function_name_subsection should presence");
.expect("function_name_subsection should be present");
assert_eq!(
function_name_subsection.names().get(0).expect("Should be entry #0"),
"elog"

View File

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