代码警告消除和优化
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user