From 73499e0ab38a6b4c2c74f98c919ee44cce33c9b3 Mon Sep 17 00:00:00 2001 From: Michael Sippel Date: Fri, 24 Feb 2023 18:44:47 +0100 Subject: [PATCH] style --- nested/src/type_system/context.rs | 2 +- nested/src/type_system/make_editor.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/nested/src/type_system/context.rs b/nested/src/type_system/context.rs index c8300d8..5d5bec1 100644 --- a/nested/src/type_system/context.rs +++ b/nested/src/type_system/context.rs @@ -68,7 +68,7 @@ pub struct Context { /// assigns a name to every type type_dict: Arc>, - /// vertices of the graph + /// named vertices of the graph nodes: HashMap< String, NestedNode >, /// todo: beautify diff --git a/nested/src/type_system/make_editor.rs b/nested/src/type_system/make_editor.rs index a8cb1f8..326ecd7 100644 --- a/nested/src/type_system/make_editor.rs +++ b/nested/src/type_system/make_editor.rs @@ -110,9 +110,7 @@ pub fn init_editor_ctx(parent: Arc>) -> Arc> { depth ); - node.view = Some(pty_editor.pty_view( - ("".into(), "".into(), "".into()) - )); + node.view = Some(pty_editor.pty_view(("", "", ""))); node.cmd = Some(Arc::new(RwLock::new(pty_editor))); Some(node) }