summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/inspector_server.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/inspector_server.rs b/runtime/inspector_server.rs
index e5f3a4f09..d65e813cb 100644
--- a/runtime/inspector_server.rs
+++ b/runtime/inspector_server.rs
@@ -40,7 +40,7 @@ pub struct InspectorServer {
}
impl InspectorServer {
- pub fn new(host: SocketAddr, name: String) -> Self {
+ pub fn new(host: SocketAddr, name: &'static str) -> Self {
let (register_inspector_tx, register_inspector_rx) =
mpsc::unbounded::<InspectorInfo>();
@@ -220,7 +220,7 @@ async fn server(
host: SocketAddr,
register_inspector_rx: UnboundedReceiver<InspectorInfo>,
shutdown_server_rx: oneshot::Receiver<()>,
- name: String,
+ name: &str,
) {
let inspector_map_ =
Rc::new(RefCell::new(HashMap::<Uuid, InspectorInfo>::new()));