chore: Remove unused imports and dead code causing compiler warnings
This commit is contained in:
1 parent
cddd97dc9f
commit
e72af4f877
6 files changed
+102
-10
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import re
|
||||
|
||||
with open(r'C:\Users\reazul.ashraf\workspace\rust\mcp-memory\server\src\handlers.rs', 'r', encoding='utf-8') as f:
|
||||
content = f.read()
|
||||
|
||||
content = content.replace(
|
||||
'crate::mcp::tool_def::<GenerateStandupReportTool>(\n "generate_standup_report",\n "",\n )',
|
||||
'crate::mcp::tool_def::<GenerateStandupReportTool>(\n "generate_standup_report",\n "Generate a standup report summarizing recent work, blockers, and next steps.",\n )'
|
||||
)
|
||||
|
||||
content = content.replace(
|
||||
'crate::mcp::tool_def::<GetEnvironmentDetailsTool>(\n "get_environment_details",\n "",\n )',
|
||||
'crate::mcp::tool_def::<GetEnvironmentDetailsTool>(\n "get_environment_details",\n "Get detailed information about a specific deployment environment.",\n )'
|
||||
)
|
||||
|
||||
content = content.replace(
|
||||
'crate::mcp::tool_def::<ListContextWorkspacesTool>(\n "list_context_workspaces",\n "",\n )',
|
||||
'crate::mcp::tool_def::<ListContextWorkspacesTool>(\n "list_context_workspaces",\n "List all saved context workspaces.",\n )'
|
||||
)
|
||||
|
||||
with open(r'C:\Users\reazul.ashraf\workspace\rust\mcp-memory\server\src\handlers.rs', 'w', encoding='utf-8') as f:
|
||||
f.write(content)
|
||||
|
||||
print("Descriptions fixed.")
|
||||
Reference in new issue
Block a user