Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tu6ge committed Sep 4, 2023
1 parent 07498e4 commit 63179dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/register/field_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,14 @@ pub fn parse(source: &str) -> Result<Vec<FieldName>, String> {
}

pub fn parse_message(source: &str) -> Result<MessageKey, String> {
let (name, string) = source
let (name_str, string) = source
.rsplit_once('.')
.ok_or("not found message".to_owned())?;
let mut names = parse(name)?;
let names = parse(name_str)?;

Ok(MessageKey::new(
FieldNames {
string: source.to_string(),
string: name_str.to_string(),
vec: names,
},
string.to_string(),
Expand Down

0 comments on commit 63179dd

Please sign in to comment.