fix: Discriminant hints only render for datacarrying enums with primitive repr

This commit is contained in:
Lukas Wirth 2023-05-16 22:15:39 +02:00
parent 2f8cd66fb4
commit c12ede8c34
3 changed files with 49 additions and 46 deletions

View file

@ -102,7 +102,7 @@ pub(crate) fn handle_analyzer_status(
.collect::<Vec<&AbsPath>>()
);
}
format_to!(buf, "\nVfs memory usage: {}\n", snap.vfs_memory_usage());
format_to!(buf, "\nVfs memory usage: {}\n", profile::Bytes::new(snap.vfs_memory_usage() as _));
buf.push_str("\nAnalysis:\n");
buf.push_str(
&snap