Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

CompileOptionsWrapper::new should accept a &str instead of a C string pointer #520

Merged
merged 1 commit into from Jul 31, 2020

Conversation

nicoabie
Copy link
Contributor

@nicoabie nicoabie commented Jul 27, 2020

Updated CompileOptionsWrapper new method to receive a &str for the filename

Also changed the line parameter to u32 instead of c_int (to make the bits clearer)

Fixes #518

CYBAI
CYBAI approved these changes Jul 27, 2020
Copy link
Member

@CYBAI CYBAI left a comment

Choose a reason for hiding this comment

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

It would be good to describe what the issue is explicitly in PR name instead of FIxes issue 518.

For example, just same as the issue name, CompileOptionsWrapper::new should accept a &str instead of a C string pointer .

Besides, you can add Fixes #518 in PR description so that GitHub can close the issue automatically when this PR merged.

Other than these 2 points, this PR looks good to me! Thanks for your contribution!

src/rust.rs Show resolved Hide resolved
@nicoabie nicoabie changed the title Fixes issue 518 CompileOptionsWrapper::new should accept a &str instead of a C string pointer Jul 27, 2020
jdm
jdm approved these changes Jul 27, 2020
Copy link
Member

@jdm jdm left a comment

Choose a reason for hiding this comment

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

Looks good! Please squash and we'll merge!

…lename

Also changed the line parameter to u32 instead of c_int (to make the bits clearer)
@jdm
Copy link
Member

jdm commented Jul 31, 2020

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 38b7857 has been approved by jdm

@bors-servo
Copy link
Contributor

Testing commit 38b7857 with merge b3c252f...

@bors-servo
Copy link
Contributor

☀️ Test successful - checks-travis, status-appveyor
Approved by: jdm
Pushing b3c252f to master...

@bors-servo bors-servo merged commit b3c252f into servo:master Jul 31, 2020
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CompileOptionsWrapper::new should accept a &str instead of a C string pointer
4 participants