Stream: git-wasmtime

Topic: wasmtime / PR #1950 Use AsRef<Path> instead of AsRef<OsSt...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 30 2020 at 18:39):

sunfishcode opened PR #1950 from sunfishcode/yanix-path to main:

AsRef<Path> makes these more consistent with std interfaces, making
them easier to use outside of wasi-common.

Also, refactor the conversion to CString into a helper function.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jun 30 2020 at 19:12):

sunfishcode requested kubkon for a review on PR #1950.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 30 2020 at 19:34):

sunfishcode updated PR #1950 from sunfishcode/yanix-path to main:

AsRef<Path> makes these more consistent with std interfaces, making
them easier to use outside of wasi-common.

Also, refactor the conversion to CString into a helper function.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jun 30 2020 at 19:54):

iximeow submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 30 2020 at 20:06):

sunfishcode updated PR #1950 from sunfishcode/yanix-path to main:

AsRef<Path> makes these more consistent with std interfaces, making
them easier to use outside of wasi-common.

Also, refactor the conversion to CString into a helper function.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2020 at 18:34):

kubkon submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2020 at 18:34):

kubkon submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2020 at 18:34):

kubkon created PR Review Comment:

We already pull in std::io::{Error, Result} into scope in this module, so we might as well use it here. Also, while we already do that, I guess we could pull in std::path::Path and std::ffi::CString. It's a minor stylistic nit, so feel free to ignore!

view this post on Zulip Wasmtime GitHub notifications bot (Jul 01 2020 at 18:34):

kubkon created PR Review Comment:

Hmm, shouldn't these two be the other way around? Weirdly enough, there's a mismatch between linux and other hosts in the way this has been formatted in this PR.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 20 2020 at 15:31):

sunfishcode updated PR #1950 from sunfishcode/yanix-path to main:

AsRef<Path> makes these more consistent with std interfaces, making
them easier to use outside of wasi-common.

Also, refactor the conversion to CString into a helper function.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jul 20 2020 at 15:32):

sunfishcode submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 20 2020 at 15:32):

sunfishcode created PR Review Comment:

Fixed.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 20 2020 at 15:32):

sunfishcode submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 20 2020 at 15:32):

sunfishcode created PR Review Comment:

Fixed.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 20 2020 at 17:02):

sunfishcode merged PR #1950.


Last updated: Dec 23 2024 at 13:07 UTC