代码警告消除和优化

This commit is contained in:
xintaofei
2026-03-09 10:05:22 +08:00
parent 2b4f00484d
commit 46b276443b
10 changed files with 64 additions and 53 deletions

View File

@@ -21,7 +21,7 @@ pub enum TerminalRuntimeError {
}
impl TerminalRuntimeError {
pub fn to_rpc_error(self) -> sacp::Error {
pub fn into_rpc_error(self) -> sacp::Error {
match self {
Self::InvalidParams(message) => sacp::Error::invalid_params().data(message),
Self::Internal(message) => sacp::util::internal_error(message),