Skip to content

Commit 0232a2d

Browse files
committed
chore: cleanup
1 parent a959b4c commit 0232a2d

4 files changed

Lines changed: 4 additions & 6 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Anyone can participate at any stage, whether it's discussing, triaging, or revie
2424

2525
### **Filing a Bug Report**
2626

27-
When reporting a bug, use the provided issue template and fill in as many details as possible. Don’t worry if you can’t answer everythingjust provide what you can.
27+
When reporting a bug, use the provided issue template and fill in as many details as possible. Don’t worry if you can’t answer everything-just provide what you can.
2828

2929
### **Fixing Issues**
3030

src/fs_service/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl FileSystemService {
7171

7272
// Check if path is within allowed directories
7373
if !allowed_directories.iter().any(|dir| {
74-
// Must account for both scenarios the requested path may not exist yet, making canonicalization impossible.
74+
// Must account for both scenarios - the requested path may not exist yet, making canonicalization impossible.
7575
normalized_requested.starts_with(dir)
7676
|| normalized_requested.starts_with(normalize_path(dir))
7777
}) {

src/server.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1+
use crate::handler::FileSystemHandler;
2+
use crate::{cli::CommandArguments, error::ServiceResult};
13
use rust_mcp_sdk::schema::{
24
Implementation, InitializeResult, LATEST_PROTOCOL_VERSION, ServerCapabilities,
35
ServerCapabilitiesTools,
46
};
57
use rust_mcp_sdk::{McpServer, StdioTransport, TransportOptions, mcp_server::server_runtime};
68

7-
use crate::handler::FileSystemHandler;
8-
use crate::{cli::CommandArguments, error::ServiceResult};
9-
109
pub fn server_details() -> InitializeResult {
1110
InitializeResult {
1211
server_info: Implementation {

tests/test_fs_service.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,6 @@ async fn test_tail_file_no_newline_at_end() {
12711271
"test.txt",
12721272
"line1\nline2\nline3", // No newline at end
12731273
);
1274-
println!(">>> {file_path:?} ");
12751274

12761275
let result = service.tail_file(&file_path, 2).await.unwrap();
12771276
assert_eq!(result, "line2\nline3");

0 commit comments

Comments
 (0)