Commit 680389f
committed
Accept impl ToString as msg in get_rpc_status and get_status
So that we do not need the .to_string() in every call of get_status or
get_rpc_status.
e.g.:
get_rpc_status(ttrpc::Code::INTERNAL, e.to_string()) ->
get_rpc_status(ttrpc::Code::INTERNAL, e))
Signed-off-by: Tim Zhang <tim@hyper.sh>1 parent 8f99147 commit 680389f
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments