Enable clippy::needless_lifetimes
(#8777)
This PR enables the [`clippy::needless_lifetimes`](https://rust-lang.github.io/rust-clippy/master/index.html#/needless_lifetimes) rule and fixes the outstanding violations. Release Notes: - N/A
This commit is contained in:
parent
1fa9496334
commit
53630dc74c
13 changed files with 67 additions and 78 deletions
|
@ -1016,7 +1016,7 @@ impl Project {
|
|||
}
|
||||
|
||||
/// Collect all worktrees, including ones that don't appear in the project panel
|
||||
pub fn worktrees<'a>(&'a self) -> impl 'a + DoubleEndedIterator<Item = Model<Worktree>> {
|
||||
pub fn worktrees(&self) -> impl '_ + DoubleEndedIterator<Item = Model<Worktree>> {
|
||||
self.worktrees
|
||||
.iter()
|
||||
.filter_map(move |worktree| worktree.upgrade())
|
||||
|
@ -9155,7 +9155,7 @@ fn subscribe_for_copilot_events(
|
|||
)
|
||||
}
|
||||
|
||||
fn glob_literal_prefix<'a>(glob: &'a str) -> &'a str {
|
||||
fn glob_literal_prefix(glob: &str) -> &str {
|
||||
let mut literal_end = 0;
|
||||
for (i, part) in glob.split(path::MAIN_SEPARATOR).enumerate() {
|
||||
if part.contains(&['*', '?', '{', '}']) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue