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

Add wrapper for hb_blob_t #109

Merged
merged 1 commit into from May 17, 2018
Merged

Add wrapper for hb_blob_t #109

merged 1 commit into from May 17, 2018

Conversation

@mbrubeck
Copy link
Contributor

mbrubeck commented May 16, 2018

This change is Reviewable

@mbrubeck mbrubeck force-pushed the mbrubeck:blob branch 2 times, most recently from b9b92d3 to f2a7583 May 17, 2018
}

/// Returns true if the blob is immutable.
pub fn is_immutable(&mut self) {

This comment has been minimized.

@waywardmonkeys

waywardmonkeys May 17, 2018

Collaborator

This looks like a copy paste error ... it is the same as the above function.

This comment has been minimized.

@mbrubeck

mbrubeck May 17, 2018

Author Contributor

Oops! Fixed.

/// Returns the size of the blob in bytes.
pub fn len(&self) -> usize {
unsafe { sys::hb_blob_get_length(self.raw) as usize }
}

This comment has been minimized.

@waywardmonkeys

waywardmonkeys May 17, 2018

Collaborator

Suspect that with a len function, clippy will warm if there isn’t an is_empty function.

This comment has been minimized.

@mbrubeck

mbrubeck May 17, 2018

Author Contributor

Fixed.

@mbrubeck mbrubeck force-pushed the mbrubeck:blob branch from f2a7583 to 89e68a9 May 17, 2018
@waywardmonkeys
Copy link
Collaborator

waywardmonkeys commented May 17, 2018

@bors-servo
Copy link
Contributor

bors-servo commented May 17, 2018

📌 Commit 89e68a9 has been approved by waywardmonkeys

@bors-servo
Copy link
Contributor

bors-servo commented May 17, 2018

Testing commit 89e68a9 with merge bd58ff7...

bors-servo added a commit that referenced this pull request May 17, 2018
Add wrapper for hb_blob_t

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-harfbuzz/109)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 17, 2018

☀️ Test successful - status-travis
Approved by: waywardmonkeys
Pushing bd58ff7 to master...

@bors-servo bors-servo merged commit 89e68a9 into servo:master May 17, 2018
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.