Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Jan 30, 2024
1 parent e3d0c98 commit ff1f692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl LanguageServer for Backend {
async fn initialize(&self, params: InitializeParams) -> Result<InitializeResult> {
*self.workspace.write().unwrap() = params
.workspace_folders
.and_then(|v| v.get(0).map(|w| w.uri.clone()))
.and_then(|v| v.first().map(|w| w.uri.clone()))
.map(|url| {
let mut s = url.to_string();
if !s.ends_with('/') {
Expand Down

0 comments on commit ff1f692

Please sign in to comment.