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

fix impl Format for Str (interned string) #166

Merged
merged 1 commit into from
Sep 7, 2020
Merged

fix impl Format for Str (interned string) #166

merged 1 commit into from
Sep 7, 2020

Conversation

japaric
Copy link
Member

@japaric japaric commented Sep 7, 2020

closes #164

@@ -93,7 +93,7 @@ impl Format for f32 {
impl Format for Str {
fn format(&self, fmt: &mut Formatter) {
if fmt.needs_tag() {
let t = internp!("{:str}");
let t = internp!("{:istr}");
Copy link
Member Author

Choose a reason for hiding this comment

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

we forgot to update this format string when we renamed {:str} to {:istr} some time ago

@japaric japaric merged commit 3a0232e into main Sep 7, 2020
@jonas-schievink jonas-schievink deleted the gh164 branch October 19, 2020 15:57
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.

crash when printing interned string with {:?}
2 participants