Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FP
ghostcell
Commits
579c5102
Commit
579c5102
authored
Feb 24, 2021
by
Hai Dang
Browse files
cleanup
parent
40945d1c
Pipeline
#42404
passed with stage
in 26 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ghostcell/examples/dlist_arena.rs
View file @
579c5102
...
...
@@ -5,11 +5,9 @@ use std::{fmt, thread, time};
use
typed_arena
::
Arena
as
TypedArena
;
fn
print_list
<
'arena
,
'id
,
T
:
fmt
::
Debug
>
(
tag
:
char
,
list
:
NodeRef
<
'arena
,
'id
,
T
>
,
token
:
&
GhostToken
<
'id
>
)
{
print!
(
"["
);
for
d
in
Node
::
iter
(
list
,
token
)
{
print!
(
"{}{:?}, "
,
tag
,
d
);
}
print!
(
"]"
);
}
fn
main
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment