chore: fix clippy warnings
Some checks failed
CI / ${{ matrix.name }} (${{ matrix.target }}) (false, Linux x86_64, ubuntu-latest, true, x86_64-unknown-linux-gnu) (push) Has been cancelled
CI / ${{ matrix.name }} (${{ matrix.target }}) (false, Windows x86_64, windows-latest, true, x86_64-pc-windows-gnu) (push) Has been cancelled
CI / ${{ matrix.name }} (${{ matrix.target }}) (false, macOS x86_64, macos-latest, true, x86_64-apple-darwin) (push) Has been cancelled
CI / ${{ matrix.name }} (${{ matrix.target }}) (true, Android, ubuntu-latest, true, aarch64-linux-android) (push) Has been cancelled
CI / ${{ matrix.name }} (${{ matrix.target }}) (true, FreeBSD, ubuntu-latest, true, x86_64-unknown-freebsd) (push) Has been cancelled
CI / render (push) Has been cancelled
Some checks failed
CI / ${{ matrix.name }} (${{ matrix.target }}) (false, Linux x86_64, ubuntu-latest, true, x86_64-unknown-linux-gnu) (push) Has been cancelled
CI / ${{ matrix.name }} (${{ matrix.target }}) (false, Windows x86_64, windows-latest, true, x86_64-pc-windows-gnu) (push) Has been cancelled
CI / ${{ matrix.name }} (${{ matrix.target }}) (false, macOS x86_64, macos-latest, true, x86_64-apple-darwin) (push) Has been cancelled
CI / ${{ matrix.name }} (${{ matrix.target }}) (true, Android, ubuntu-latest, true, aarch64-linux-android) (push) Has been cancelled
CI / ${{ matrix.name }} (${{ matrix.target }}) (true, FreeBSD, ubuntu-latest, true, x86_64-unknown-freebsd) (push) Has been cancelled
CI / render (push) Has been cancelled
This commit is contained in:
parent
2cba719a73
commit
ac52b2cab6
@ -95,8 +95,8 @@ impl Display for Logo {
|
||||
"{}",
|
||||
self.logo_parts
|
||||
.iter()
|
||||
.map(|LogoPart { color, content }| format!("{color}{content}"))
|
||||
.collect::<String>()
|
||||
.fold("".to_string(), |a, LogoPart { color, content }| a
|
||||
+ &format!("{color}{content}"))
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -370,10 +370,7 @@ pub fn de(general_readout: &GeneralReadout) -> Option<String> {
|
||||
}
|
||||
|
||||
pub fn palette() -> String {
|
||||
(1..7)
|
||||
.map(|num| format!("\x1b[4{num}m "))
|
||||
.collect::<String>()
|
||||
+ "\x1b[0m"
|
||||
(1..7).fold("".to_string(), |a, e| a + &format!("\x1b[4{e}m ")) + "\x1b[0m"
|
||||
}
|
||||
|
||||
fn run_system_command(command: &str, args: &[&str]) -> Result<String> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user