File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -109,21 +109,21 @@ impl Column {
109109 /// `foo.BAR` would be parsed to a reference to relation `foo`, column name `bar` (lower case)
110110 /// where `"foo.BAR"` would be parsed to a reference to column named `foo.BAR`
111111 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 ) )
114114 . unwrap_or_else ( || Self {
115115 relation : None ,
116- name : flat_name. to_owned ( ) ,
116+ name : flat_name,
117117 } )
118118 }
119119
120120 /// Deserialize a fully qualified name string into a column preserving column text case
121121 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 ) )
124124 . unwrap_or_else ( || Self {
125125 relation : None ,
126- name : flat_name. to_owned ( ) ,
126+ name : flat_name,
127127 } )
128128 }
129129
You can’t perform that action at this time.
0 commit comments