Skip to content

Commit 6e59b8b

Browse files
committed
fix: clippy
1 parent 544ebff commit 6e59b8b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/handler.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ impl ServerHandler for MyServerHandler {
7777
) -> std::result::Result<InitializeResult, RpcError> {
7878
runtime
7979
.set_client_details(initialize_request.params.clone())
80+
.await
8081
.map_err(|err| RpcError::internal_error().with_message(format!("{err}")))?;
8182

8283
let mut server_info = runtime.server_info().to_owned();

tests/test_fs_service.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ fn test_extract_snippet_bug_37() {
11051105

11061106
let curly_pos = line.find("’").unwrap();
11071107

1108-
println!("Curly apostrophe at byte: {}", curly_pos); //position: 301
1108+
println!("Curly apostrophe at byte: {curly_pos}"); //position: 301
11091109

11101110
// Simulate a match just after the curly apostrophe
11111111
let match_start = curly_pos + 3; // Start of "followed"
@@ -1125,5 +1125,5 @@ fn test_extract_snippet_bug_37() {
11251125
Some(backward_chars),
11261126
);
11271127

1128-
println!("Snippet: {}", result);
1128+
println!("Snippet: {result}");
11291129
}

0 commit comments

Comments
 (0)