Skip to content

Commit 1812ace

Browse files
committed
no unwraps
1 parent b7bcc3b commit 1812ace

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/sqlparser_snowflake.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3129,12 +3129,12 @@ fn test_parse_show_objects() {
31293129
show_options,
31303130
}) => {
31313131
assert!(terse);
3132-
let name = show_options
3133-
.show_in
3134-
.unwrap()
3135-
.parent_name
3136-
.unwrap()
3137-
.to_string();
3132+
let name = match show_options.show_in {
3133+
Some(ShowStatementIn { parent_name: Some(val), .. }) => {
3134+
val.to_string()
3135+
}
3136+
_ => unreachable!(),
3137+
};
31383138
assert_eq!("abc", name);
31393139
let like = match show_options.filter_position {
31403140
Some(ShowStatementFilterPosition::Infix(ShowStatementFilter::Like(val))) => val,

0 commit comments

Comments
 (0)