Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix no copy when cast Snippet to DisplayList and #29 #32

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

Merged
zbraniecki merged 2 commits into rust-lang:master from zzau13:master
Apr 4, 2020
Merged

Fix no copy when cast Snippet to DisplayList and #29 #32

zbraniecki merged 2 commits into rust-lang:master from zzau13:master
Apr 4, 2020

Conversation

Copy link
Contributor

@zzau13 zzau13 commented Apr 3, 2020

With this pull request the "no copy" process is completed. All the crate is free copy πŸ˜„
I have changed from yaml to toml because yaml does not implement serde::Deserialize

zbraniecki reacted with heart emoji
@zbraniecki zbraniecki self-requested a review April 3, 2020 21:41
Copy link
Contributor Author

zzau13 commented Apr 4, 2020

Fixed #29

let lines = slice.source.lines();
let lines_len = lines.clone().count();
for (i, line) in lines.enumerate() {
for (line, end_line) in CursorLines::new(slice.source) {
Copy link
Contributor

@zbraniecki zbraniecki Apr 4, 2020

Choose a reason for hiding this comment

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

I really like this solution!

zzau13 reacted with heart emoji
@zzau13 zzau13 changed the title (ε‰Šι™€) Fix no copy when cast Snippet to DisplayList (ε‰Šι™€γ“γ“γΎγ§) (追記) Fix no copy when cast Snippet to DisplayList and #29 (θΏ½θ¨˜γ“γ“γΎγ§) Apr 4, 2020
Copy link
Contributor

Looks great! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
1 more reviewer

@zbraniecki zbraniecki zbraniecki approved these changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /