Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Palette sorting - #193

Merged
shssoichiro merged 4 commits into
oxipng:masterfrom
kornelski:palette-sorting
Sep 10, 2019
Merged

Palette sorting#193
shssoichiro merged 4 commits into
oxipng:masterfrom
kornelski:palette-sorting

Conversation

@kornelski

Copy link
Copy Markdown
Contributor

Fixes #184

Comment thread src/reduction/mod.rs
}

let mut used_enumerated : Vec<(usize, &bool)>= used.iter().enumerate().collect();
used_enumerated.sort_by(|a, b| {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You can use itertools to make this a little more concise.

Comment thread src/reduction/mod.rs Outdated
@shssoichiro
shssoichiro merged commit e473958 into oxipng:master Sep 10, 2019
@kornelski
kornelski deleted the palette-sorting branch September 11, 2019 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants