Skip to content

Commit

Permalink
[ruff F401 #10390 #10391] move comment about tests
Browse files Browse the repository at this point in the history
  • Loading branch information
plredmond committed Apr 27, 2024
1 parent 67332fa commit de31d89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ruff_linter/src/fix/edits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ pub(crate) fn remove_unused_imports<'a>(
}

// TODO: unit tests
// TODO: test for `a as a`
// TODO: test for `a as b`
/// Edits to make the specified imports explicit, e.g. change `import x` to `import x as x`.
pub(crate) fn make_redundant_alias<'a>(
member_names: impl Iterator<Item = &'a str>,
Expand All @@ -135,8 +137,6 @@ pub(crate) fn make_redundant_alias<'a>(
return Vec::new();
}
};
// TODO: test for `a as a`
// TODO: test for `a as b`
member_names
.filter_map(|name| {
aliases
Expand Down

0 comments on commit de31d89

Please sign in to comment.