Merge pull request #110 from nickolay/pr/cleanups

Minor code clean-ups
This commit is contained in:
Nickolay Ponomarev 2019-06-09 20:24:13 +03:00 committed by GitHub
commit 518c8833d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 80 additions and 108 deletions

View file

@ -1994,7 +1994,7 @@ fn parse_drop_table() {
assert_eq!(SQLObjectType::Table, object_type);
assert_eq!(
vec!["foo"],
names.iter().map(|n| n.to_string()).collect::<Vec<_>>()
names.iter().map(ToString::to_string).collect::<Vec<_>>()
);
assert_eq!(false, cascade);
}
@ -2013,7 +2013,7 @@ fn parse_drop_table() {
assert_eq!(SQLObjectType::Table, object_type);
assert_eq!(
vec!["foo", "bar"],
names.iter().map(|n| n.to_string()).collect::<Vec<_>>()
names.iter().map(ToString::to_string).collect::<Vec<_>>()
);
assert_eq!(true, cascade);
}
@ -2042,7 +2042,7 @@ fn parse_drop_view() {
} => {
assert_eq!(
vec!["myschema.myview"],
names.iter().map(|n| n.to_string()).collect::<Vec<_>>()
names.iter().map(ToString::to_string).collect::<Vec<_>>()
);
assert_eq!(SQLObjectType::View, object_type);
}