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

More robust asset paths in examples #1090

Merged
merged 4 commits into from Jun 15, 2022
Merged

More robust asset paths in examples #1090

merged 4 commits into from Jun 15, 2022

Conversation

davidpdrsn
Copy link
Member

#1089 for the other examples that read assets.

@davidpdrsn davidpdrsn requested a review from jplatte June 15, 2022 08:15
@@ -30,8 +37,8 @@ async fn main() {
.init();

let rustls_config = rustls_server_config(
"examples/tls-rustls/self_signed_certs/key.pem",
"examples/tls-rustls/self_signed_certs/cert.pem",
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("self_signed_certs/key.pem"),
Copy link
Member

Choose a reason for hiding this comment

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

Maybe use platform-native path separators while you're at it?

Suggested change
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("self_signed_certs/key.pem"),
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("self_signed_certs").join("key.pem"),

Copy link
Member

Choose a reason for hiding this comment

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

This isn't resolved, there's at three more of these /es in string literals in the PR 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh whoops sorry. I'll fix those!

Copy link
Member Author

Choose a reason for hiding this comment

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

There we go!

davidpdrsn and others added 2 commits June 15, 2022 12:58
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
@davidpdrsn davidpdrsn enabled auto-merge (squash) June 15, 2022 17:35
@davidpdrsn davidpdrsn requested a review from jplatte June 15, 2022 17:35
@davidpdrsn davidpdrsn merged commit fd70f81 into main Jun 15, 2022
@davidpdrsn davidpdrsn deleted the fix-asset-paths branch June 15, 2022 20:42
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.

None yet

2 participants