Apply some clippy suggestions
This commit is contained in:
parent
b8c548136a
commit
3a7d7ad905
7 changed files with 15 additions and 22 deletions
|
@ -105,7 +105,7 @@ impl<'a> SchemaMetadata<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
fn none_if_empty<'a>(s: &'a String) -> Option<&'a str> {
|
||||
fn none_if_empty(s: &String) -> Option<&str> {
|
||||
if s.is_empty() {
|
||||
None
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue