Skip to content

Commit 9a81f17

Browse files
mjgartonsunng87
authored andcommitted
Make clippy happy
1 parent 6819977 commit 9a81f17

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

datafusion-postgres/src/handlers.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,11 @@ impl ExtendedQueryHandler for DfSessionService {
201201
}
202202
}
203203

204-
fn ordered_param_types<'a>(
205-
types: &'a HashMap<String, Option<DataType>>,
206-
) -> Vec<Option<&'a DataType>> {
204+
fn ordered_param_types(types: &HashMap<String, Option<DataType>>) -> Vec<Option<&DataType>> {
207205
// Datafusion stores the parameters as a map. In our case, the keys will be
208206
// `$1`, `$2` etc. The values will be the parameter types.
209207

210208
let mut types = types.iter().collect::<Vec<_>>();
211-
types.sort_by(|a, b| a.0.cmp(&b.0));
209+
types.sort_by(|a, b| a.0.cmp(b.0));
212210
types.into_iter().map(|pt| pt.1.as_ref()).collect()
213211
}

0 commit comments

Comments
 (0)