Skip to content

Transform the bin into a lib #1

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

Merged
merged 38 commits into from
Nov 12, 2021
Merged

Transform the bin into a lib #1

merged 38 commits into from
Nov 12, 2021

Conversation

yozhgoor
Copy link
Owner

@yozhgoor yozhgoor commented Nov 8, 2021

No description provided.

src/lib.rs Outdated
Comment on lines 130 to 132
let mut exit_code: u32 = 0;

unsafe {
Copy link

Choose a reason for hiding this comment

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

Suggested change
let mut exit_code: u32 = 0;
unsafe {
unsafe {
let mut exit_code: u32 = 0;

@yozhgoor yozhgoor merged commit 2addad3 into main Nov 12, 2021
@yozhgoor yozhgoor deleted the lib branch November 12, 2021 21:40
inherit_handles: bool,
current_directory: Option<&Path>,
) -> Result<Self> {
let mut startup_info = STARTUPINFOW::default();
Copy link

Choose a reason for hiding this comment

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

I would start unsafe here in the beginning as the entire logic is one block here

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.

2 participants