Skip to content
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

fix serde not compiling for struct with lifetime #70

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

b1ek
Copy link
Member

@b1ek b1ek commented Nov 16, 2024

No description provided.

@b1ek b1ek added the bug Something isn't working label Nov 16, 2024
@b1ek b1ek requested a review from Ph0enixKM November 16, 2024 11:44
@b1ek b1ek self-assigned this Nov 16, 2024
Copy link
Member

@Ph0enixKM Ph0enixKM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provided that the code variable contains a long script file (potentially 1 mln lines of code), this could lead to unnecessary value cloning. Of course, as of the alpha version, this won't be too much of an issue. Let's consider removing serde's serialise and deserialise for Reader as it's only used internally, and importing it publicly from the package should be considered a violation of encapsulation rules.

src/compiling/lexing/reader.rs Outdated Show resolved Hide resolved
src/compiling/lexing/reader.rs Show resolved Hide resolved
src/compiling/lexing/lexer.rs Outdated Show resolved Hide resolved
@Ph0enixKM Ph0enixKM merged commit c71397d into master Nov 20, 2024
1 check passed
@Ph0enixKM Ph0enixKM deleted the fix-serde-compiling branch November 20, 2024 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants