Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions core/src/ipc/zone/search_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ bitflags! {

impl std::fmt::Debug for SearchUIGrandCompanies {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
// Special-case NONE because it's 255 and indicates the *absence* of the flags!
// NOTE: before considering removal of this, please read the above comment!
if *self == SearchUIGrandCompanies::NONE {
return write!(f, "NONE");
}

bitflags::parser::to_writer(self, f)
}
}
Expand Down
Loading