Reformat the code a bit.

This commit is contained in:
Oleksandr Kozachuk
2022-12-04 00:04:28 +01:00
parent 66acff9884
commit 157bab1d56
4 changed files with 23 additions and 72 deletions
+5 -15
View File
@@ -76,9 +76,7 @@ mod tests {
#[test]
fn parse_password_test() {
assert_eq!(
command_parser::name(
"ableton89 R 99 2020-12-09 xx.ableton@domain.info https://www.ableton.com"
),
command_parser::name("ableton89 R 99 2020-12-09 xx.ableton@domain.info https://www.ableton.com"),
Ok(Password {
name: Rc::new("ableton89".to_string()),
parent: None,
@@ -91,9 +89,7 @@ mod tests {
})
);
assert_eq!(
command_parser::name(
"ableton89 U 99 2020-12-09 xx.ableton@domain.info https://www.ableton.com"
),
command_parser::name("ableton89 U 99 2020-12-09 xx.ableton@domain.info https://www.ableton.com"),
Ok(Password {
name: Rc::new("ableton89".to_string()),
parent: None,
@@ -119,9 +115,7 @@ mod tests {
})
);
assert_eq!(
command_parser::name(
"#W9 ableton89 R 99 2020-12-09 xx.ableton@domain.info https://www.ableton.com"
),
command_parser::name("#W9 ableton89 R 99 2020-12-09 xx.ableton@domain.info https://www.ableton.com"),
Ok(Password {
name: Rc::new("ableton89".to_string()),
parent: None,
@@ -134,9 +128,7 @@ mod tests {
})
);
assert_eq!(
command_parser::name(
"#W9 ableton89 N 99 2020-12-09 xx.ableton@domain.info https://www.ableton.com"
),
command_parser::name("#W9 ableton89 N 99 2020-12-09 xx.ableton@domain.info https://www.ableton.com"),
Ok(Password {
name: Rc::new("ableton89".to_string()),
parent: None,
@@ -149,9 +141,7 @@ mod tests {
})
);
assert_eq!(
command_parser::name(
"#W9 ableton89 UN 99 2020-12-09 xx.ableton@domain.info https://www.ableton.com"
),
command_parser::name("#W9 ableton89 UN 99 2020-12-09 xx.ableton@domain.info https://www.ableton.com"),
Ok(Password {
name: Rc::new("ableton89".to_string()),
parent: None,