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

Improvements #42

Merged
merged 4 commits into from
Apr 12, 2019
Merged

Improvements #42

merged 4 commits into from
Apr 12, 2019

Conversation

GuillaumeGomez
Copy link
Member

No description provided.

src/coord_seq.rs Outdated Show resolved Hide resolved
src/coord_seq.rs Outdated Show resolved Hide resolved
src/coord_seq.rs Show resolved Hide resolved
@GuillaumeGomez
Copy link
Member Author

Updated.

@@ -96,7 +97,7 @@ impl<'a> CoordSeq<'a> {
if !data.iter().skip(1).all(|x| x.len() == dims) {
return Err(Error::GenericError("All vec entries must have the same size!".to_owned()));
}
match match GContextHandle::init() {
match GContextHandle::init() {
Copy link
Contributor

Choose a reason for hiding this comment

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

can't you put and_then on the first one too ?

GContextHandle::init().and_then( unsafe {...}).and_then(|coord|...

Copy link
Member Author

Choose a reason for hiding this comment

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

You're asking a bit too much of me! I love matches. :'(

@TeXitoi
Copy link
Contributor

TeXitoi commented Apr 11, 2019 via email

@GuillaumeGomez
Copy link
Member Author

This PR is big enough as is. Next step: splitting FFI part from this crate.

@TeXitoi: I'm not a big fan of that but if you want it, please open a PR. :)

@GuillaumeGomez GuillaumeGomez merged commit fd6d3c3 into georust:master Apr 12, 2019
@GuillaumeGomez GuillaumeGomez deleted the improvements branch April 12, 2019 08:38
@mthh
Copy link
Member

mthh commented Apr 12, 2019

@GuillaumeGomez I havent been able to follow your PRs very closely but thank you for all the work in improving that library !

@TeXitoi
Copy link
Contributor

TeXitoi commented Apr 12, 2019

I dont really care that's just style.

@GuillaumeGomez
Copy link
Member Author

@mthh No problem and you're welcome! ;)

@GuillaumeGomez
Copy link
Member Author

@TeXitoi Style is important so feel free to apply yours anytime. :p

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.

4 participants