Skip to content

Fix building with Rust 1.89.0#349

Open
svenpaulsen wants to merge 2 commits intojaparic:masterfrom
svenpaulsen:master
Open

Fix building with Rust 1.89.0#349
svenpaulsen wants to merge 2 commits intojaparic:masterfrom
svenpaulsen:master

Conversation

@svenpaulsen
Copy link
Copy Markdown

This includes the minimal necessary updates to get xargo compiling with the latest Rust toolchain. No functional changes were made - just adjustments to ensure compatibility... also applied code formatting using cargo fmt.

@maratik123
Copy link
Copy Markdown

This fixes #350

Copy link
Copy Markdown

@bleggett bleggett left a comment

Choose a reason for hiding this comment

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

LGTM, also hit the same error and applied the same fix locally 👍

Comment thread src/cargo.rs
self.flags.push(home.display().to_string()); // FIXME: we shouldn't use display, we should keep the OsString
// As per CARGO_ENCODED_RUSTFLAGS docs, the separator is `0x1f`.
// As per CARGO_ENCODED_RUSTFLAGS docs, the separator is `0x1f`.
self.flags.join("\x1f")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This formatting change looks semantically wrong. I think the first comment is about home.display()..., but the second one isn't a continuation of it, it's about self.flags.join("\x1f"). The way rustfmt will probably respect the old semantics is by having an empty line between them

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.

4 participants