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

switch TargetInfo to using Cow<'static, str> #35

Merged
merged 1 commit into from
Aug 19, 2021

Conversation

sunshowers
Copy link
Contributor

Checklist

  • I have read the Contributor Guide
  • I have read and agree to the Code of Conduct
  • I have added a description of my changes and why I'd like them included in the section below

Description of Changes

This may let users of TargetInfo skip using lifetime params,
while still allowing creation at compile time using string literals.

For convenience, I've also added a Triple newtype wrapper, as well as
implemented a number of methods on all the newtype wrappers (including
the existing ones).

Related Issues

Closes #30.

This may let users of `TargetInfo` skip using lifetime params,
while still allowing creation at compile time using string literals.

For convenience, I've also added a `Triple` newtype wrapper, as well as
implemented a number of methods on all the newtype wrappers (including
the existing ones).

Closes EmbarkStudios#30.
@sunshowers
Copy link
Contributor Author

let me know if this makes sense to you -- I have another PR that upgrades to rust 1.54 as well :)

Copy link
Member

@Jake-Shadle Jake-Shadle left a comment

Choose a reason for hiding this comment

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

Oh sorry, looked at this yesterday but then got distracted with stuff, thanks for the PR! I'll wait until doing a release until later today.

@Jake-Shadle Jake-Shadle merged commit edbe3ea into EmbarkStudios:main Aug 19, 2021
@sunshowers sunshowers deleted the drop-lifetime branch August 19, 2021 05:01
@sunshowers
Copy link
Contributor Author

Thanks, I'll try putting up a PR with the required changes for 1.54 tomorrow, it's a bit involved since there's a new target family

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.

Use Cow<'static, str> instead of &'a str`?
2 participants