tui: Fix clippy issue

This commit is contained in:
Alexis Sellier 2023-03-21 13:19:38 +01:00
parent db8ec5735f
commit c51585dbf9
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ pub fn labeled_container(
title: &str, title: &str,
component: Box<dyn MockComponent>, component: Box<dyn MockComponent>,
) -> Widget<LabeledContainer> { ) -> Widget<LabeledContainer> {
let title = label(&format!(" {} ", title)) let title = label(&format!(" {title} "))
.foreground(theme.colors.default_fg) .foreground(theme.colors.default_fg)
.background(theme.colors.labeled_container_bg); .background(theme.colors.labeled_container_bg);
let spacer = label(""); let spacer = label("");