diff --git a/src/common/src/typegraph/visitor2.rs b/src/common/src/typegraph/visitor2.rs index ce9a8a57f..f1dc96723 100644 --- a/src/common/src/typegraph/visitor2.rs +++ b/src/common/src/typegraph/visitor2.rs @@ -92,7 +92,6 @@ where V: Fn(VisitorContext<'tg>, &mut A) -> Result, { let type_node = &tg.types[type_idx as usize]; - // TODO check for cycles // visit current { diff --git a/src/typegraph/core/src/global_store.rs b/src/typegraph/core/src/global_store.rs index 32e977048..e318e6d09 100644 --- a/src/typegraph/core/src/global_store.rs +++ b/src/typegraph/core/src/global_store.rs @@ -159,7 +159,7 @@ impl Store { } pub fn register_type_ref(builder: TypeRefBuilder) -> Result { - let id = with_store_mut(|s| s.types.len()) as u32; + let id = with_store(|s| s.types.len()) as u32; let type_ref = builder.with_id(id.into()); let res = type_ref.clone(); diff --git a/tools/tree-view-web.ts b/tools/tree-view-web.ts index 0dd515f37..44eecec1b 100755 --- a/tools/tree-view-web.ts +++ b/tools/tree-view-web.ts @@ -5,7 +5,7 @@ /** * Usage: - * deno run -A tools/tree-view.ts [] + * deno run -A tools/tree-view-web.ts [] */ import { TypeGraphDS } from "../src/typegate/src/typegraph/mod.ts";