Skip to content

Make Path::push match std more closely#131

Open
sosthene-nitrokey wants to merge 1 commit into
trussed-dev:mainfrom
sosthene-nitrokey:path-push-match-std
Open

Make Path::push match std more closely#131
sosthene-nitrokey wants to merge 1 commit into
trussed-dev:mainfrom
sosthene-nitrokey:path-push-match-std

Conversation

@sosthene-nitrokey

Copy link
Copy Markdown
Contributor

std's PathBuf clears the pathbuf whenever the pushed path is absolute, not just when it's "/"

Comment thread core/src/lib.rs Outdated
@@ -1,4 +1,4 @@
#![no_std]
#![cfg_attr(not(test), no_std)]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I’d prefer

#![no_std]

# [cfg(test)]
extern crate std;

for a consistent prelude.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@sosthene-nitrokey sosthene-nitrokey force-pushed the path-push-match-std branch 2 times, most recently from 28b3360 to fd591c9 Compare June 1, 2026 15:52
std's PathBuf clears the pathbuf whenever the pushed path is absolute,
not just when it's "/"
@robin-nitrokey

Copy link
Copy Markdown
Member

Do you think we should merge this now and make the next release a minor release or should we keep it open until we have to make a breaking release anyway? If we merge it now we cannot easily do a v0.1.3 release if we need to.

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