File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -109,21 +109,21 @@ impl Column {
109
109
/// `foo.BAR` would be parsed to a reference to relation `foo`, column name `bar` (lower case)
110
110
/// where `"foo.BAR"` would be parsed to a reference to column named `foo.BAR`
111
111
pub fn from_qualified_name ( flat_name : impl Into < String > ) -> Self {
112
- let flat_name: & str = & flat_name. into ( ) ;
113
- Self :: from_idents ( & mut parse_identifiers_normalized ( flat_name, false ) )
112
+ let flat_name = flat_name. into ( ) ;
113
+ Self :: from_idents ( & mut parse_identifiers_normalized ( & flat_name, false ) )
114
114
. unwrap_or_else ( || Self {
115
115
relation : None ,
116
- name : flat_name. to_owned ( ) ,
116
+ name : flat_name,
117
117
} )
118
118
}
119
119
120
120
/// Deserialize a fully qualified name string into a column preserving column text case
121
121
pub fn from_qualified_name_ignore_case ( flat_name : impl Into < String > ) -> Self {
122
- let flat_name: & str = & flat_name. into ( ) ;
123
- Self :: from_idents ( & mut parse_identifiers_normalized ( flat_name, true ) )
122
+ let flat_name= flat_name. into ( ) ;
123
+ Self :: from_idents ( & mut parse_identifiers_normalized ( & flat_name, true ) )
124
124
. unwrap_or_else ( || Self {
125
125
relation : None ,
126
- name : flat_name. to_owned ( ) ,
126
+ name : flat_name,
127
127
} )
128
128
}
129
129
You can’t perform that action at this time.
0 commit comments