Skip to content

Commit

Permalink
ci(clippy): fix warning: the following explicit lifetimes could be el…
Browse files Browse the repository at this point in the history
…ided
  • Loading branch information
tekumara committed Mar 1, 2025
1 parent 9cc3bbd commit fa26ebe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/typos-lsp/src/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ impl LanguageServer for Backend<'static, 'static> {
}
}

impl<'s, 'p> Backend<'s, 'p> {
impl<'s> Backend<'s, '_> {
pub fn new(client: Client) -> Self {
Self {
client,
Expand Down
2 changes: 1 addition & 1 deletion crates/typos-lsp/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub(crate) struct BackendState<'s> {
pub router: Router<crate::typos::Instance<'s>>,
}

impl<'s> BackendState<'s> {
impl BackendState<'_> {
pub(crate) fn set_workspace_folders(
&mut self,
workspace_folders: Vec<WorkspaceFolder>,
Expand Down

0 comments on commit fa26ebe

Please sign in to comment.