-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: option to use ByteArray instead of Array<felt252> #10
feat: option to use ByteArray instead of Array<felt252> #10
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, just one minor comment ! Keep rockin'
src/parser/mod.rs
Outdated
@@ -28,6 +28,7 @@ pub struct SvgElement { | |||
pub attributes: HashMap<String, String>, | |||
pub replacement: HashMap<String, String>, | |||
pub nodes: Vec<SvgElement>, | |||
pub type_override: Option<String>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should use an enum for that kind of handling. Enum can implement Display
trait, it should simplify handling of logic afterwards
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still quite new to Rust, thanks a lot for your advice!
c2cf65b
to
af261e3
Compare
test-2.cairo
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file should be ignored !
test.cairo
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file can be ignored too or placed into an examples/cairo
directory
af261e3
to
c01f434
Compare
examples/test-2.cairo
Outdated
svg.append('<g><text><tspan>Carbon units</t' | ||
svg.append('span></text></g>' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we fix this file please ?
Description
Closes #9
Checklist