cargo fmt

This commit is contained in:
Mike Dilger 2024-04-15 10:03:11 +12:00
parent 8b143847f2
commit d3aec9556f
2 changed files with 6 additions and 3 deletions

View File

@ -111,8 +111,7 @@ impl<'a> Notification<'a> for ConnRequest {
for (i, job) in jobstrs.iter().enumerate() {
if i + 1 < jobstrs.len() {
ui.label(
RichText::new(format!("{},", job))
.color(reasons_color(theme)),
RichText::new(format!("{},", job)).color(reasons_color(theme)),
);
} else {
ui.label(RichText::new(job).color(reasons_color(theme)));

View File

@ -117,7 +117,11 @@ pub fn truncated_label(ui: &mut Ui, text: impl Into<WidgetText>, max_width: f32)
/// Display a relay-URL
pub fn relay_url(ui: &mut Ui, theme: &Theme, url: &RelayUrl) -> Response {
let (symbol, color, spacer) = if url.as_url_crate_url().scheme() != "wss" {
("\u{00A0}\u{00A0}\u{1F513}", theme.red_500(), "\u{00A0}\u{00A0}\u{00A0}")
(
"\u{00A0}\u{00A0}\u{1F513}",
theme.red_500(),
"\u{00A0}\u{00A0}\u{00A0}",
)
} else {
("", theme.accent_color(), "")
};