-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Priv fields #9969
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
Priv fields #9969
Conversation
@@ -50,6 +50,7 @@ use std::borrow; | |||
|
|||
/// As sync::condvar, a mechanism for unlock-and-descheduling and signaling. | |||
pub struct Condvar<'self> { | |||
// all were already priv |
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.
None of these comments are necessary since we (the reviewers) can see exactly what you changed from the diff (this view).
Can you remove them please?
Thank you for this, it looks pretty good! I'd like the removal of the comments like Also, this needs to be rebased on top of the master branch of the mozilla/rust repo. |
query: Query, | ||
fragment: Option<~str> | ||
// all were made privv bt reedlepee | ||
priv scheme: ~str, |
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.
I have a feeling that these are designed for use outside this module (but I'm not sure).
If they are, then the should still be public.
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.
Ok, I just checked in servo
, and it does use the fields directly, so these need to be public. (git checkout src/libextra/url.rs
should work.)
I removed unnecessary comments and white spaces and changed some fields to public as suggested in above comments . |
data: &'self mut T, | ||
token: sync::RWLockWriteMode<'self>, | ||
poison: PoisonOnFail, | ||
|
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.
Extra empty line here.
@@ -38,7 +38,7 @@ pub struct FormatSpec { | |||
fill: char, | |||
align: parse::Alignment, | |||
flags: uint, | |||
precision: Count, | |||
precision: Count, |
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.
Extra space.
It's almost ready to go! :) Although it still needs to be rebased. (cc @catamorphism.) |
@reedlepee123 You'll need to rebase and fix the merge conflicts before we can approve this. Find either myself or tjc on IRC if you would like some instruction on how to do this. |
This closes #4386. |
No description provided.