🚧 Retoques en el código

This commit is contained in:
Manuel Cillero 2025-01-02 10:46:36 +01:00
parent d043acfb14
commit a3657fef9f
2 changed files with 2 additions and 2 deletions

View file

@ -66,7 +66,7 @@ impl Application {
if global::SETTINGS.app.startup_banner.to_lowercase() != "off" {
// Application name, formatted for the terminal width if necessary.
let mut app_ff = "".to_string();
let mut app_ff = String::new();
let app_name = &global::SETTINGS.app.name;
if let Some((Width(term_width), _)) = terminal_size() {
if term_width >= 80 {

View file

@ -273,7 +273,7 @@ impl L10n {
impl fmt::Display for L10n {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let content = match &self.op {
L10nOp::None => "".to_string(),
L10nOp::None => String::new(),
L10nOp::Text(text) => text.clone(),
L10nOp::Translate(key) => self.get().unwrap_or_else(|| format!("No <{}>", key)),
};