Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit e537291

Browse files
committed
Apply Clippy suggestions
1 parent f20a327 commit e537291

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rls/src/build/cargo_plan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ impl CargoPlan {
329329
) {
330330
if !visited.contains(unit) {
331331
visited.insert(unit.clone());
332-
for neighbour in graph.get(unit).into_iter().flat_map(|nodes| nodes) {
332+
for neighbour in graph.get(unit).into_iter().flatten() {
333333
dfs(neighbour, graph, visited, output);
334334
}
335335
output.push(unit.clone());

tests/support/paths.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::path::{Path, PathBuf};
99
use std::sync::atomic::{AtomicUsize, Ordering};
1010
use std::sync::Once;
1111

12-
static RLS_INTEGRATION_TEST_DIR: &'static str = "rlsit";
12+
static RLS_INTEGRATION_TEST_DIR: &str = "rlsit";
1313
static NEXT_ID: AtomicUsize = AtomicUsize::new(0);
1414

1515
thread_local!(static TASK_ID: usize = NEXT_ID.fetch_add(1, Ordering::SeqCst));

0 commit comments

Comments
 (0)