Skip to content

♻️ 清理部分简单的 unsafe 代码 - #12

Merged
fltLi merged 2 commits into
mainfrom
refactor/remove-unsafe
Jul 30, 2026
Merged

♻️ 清理部分简单的 unsafe 代码#12
fltLi merged 2 commits into
mainfrom
refactor/remove-unsafe

Conversation

@fltLi

@fltLi fltLi commented Jul 30, 2026

Copy link
Copy Markdown
Owner

当前项目中存在一些完全没必要的 unsafe 代码, 清理掉这些代码很容易, 且几乎对性能没有影响.

语言服务器

  • 将路径字符串和客户端的引用传递改为值传递 (拷贝).

路径树结构

  • 将无检查的数组访问改为安全的带检查访问.

@fltLi fltLi self-assigned this Jul 30, 2026
@fltLi
fltLi merged commit 5aa86f3 into main Jul 30, 2026
2 checks passed
@fltLi
fltLi deleted the refactor/remove-unsafe branch July 30, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant