Skip to content

Commit

Permalink
AVRO-3812: [Rust] Don't use unwrap() even in test code
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
martin-g committed Jul 26, 2023
1 parent e45050a commit 7b3814e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang/rust/avro/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4857,7 +4857,7 @@ mod tests {
let canonical_form = schema.canonical_form();
assert_eq!(canonical_form, expected);

let name = Name::new("my_name").unwrap();
let name = Name::new("my_name")?;
let fullname = name.fullname(Some("".to_string()));
assert_eq!(fullname, "my_name");
let qname = name.fully_qualified_name(&Some("".to_string())).to_string();
Expand Down

0 comments on commit 7b3814e

Please sign in to comment.