Skip to content

Conversation

@flodiebold
Copy link
Member

I'm looking at a lot of Chalk debug logs at the moment, so here's a few changes to make them slightly nicer...

write!(
fmt,
"<{}>",
&params[1..].iter().format_with(", ", |x, f| f(&format_args!("{:?}", x))),
Copy link
Contributor

Choose a reason for hiding this comment

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

TIL that format and format_with are a thing. I wonder if that means that we should kill stdx::SepBy...

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I also just found them for this... don't actually remember how, maybe Chalk used them 🤔

@matklad
Copy link
Contributor

matklad commented Apr 15, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 15, 2020

@bors bors bot merged commit d61909f into rust-lang:master Apr 15, 2020
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