-
Notifications
You must be signed in to change notification settings - Fork 42
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
Improvements #42
Conversation
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() { |
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't you put and_then on the first one too ?
GContextHandle::init().and_then( unsafe {...}).and_then(|coord|...
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.
You're asking a bit too much of me! I love match
es. :'(
I'll rewrote all of that with `map_err` and `?` personally.
Le 11 avril 2019 16:49:13 CEST, Guillaume Gomez <notifications@github.com> a écrit :
…GuillaumeGomez commented on this pull request.
> @@ -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() {
You're asking a bit too much of me! I love `match`es. :'(
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#42 (comment)
--
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
|
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 I havent been able to follow your PRs very closely but thank you for all the work in improving that library ! |
I dont really care that's just style. |
@mthh No problem and you're welcome! ;) |
@TeXitoi Style is important so feel free to apply yours anytime. :p |
No description provided.