mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-24 14:36:42 +02:00
Fix clippy warnings
This commit is contained in:
parent
3382c1f7ad
commit
5a4434ac58
4 changed files with 8 additions and 8 deletions
10
src/app.rs
10
src/app.rs
|
@ -1500,7 +1500,7 @@ impl TaskwarriorTuiApp {
|
|||
|
||||
let shell = self.command.as_str();
|
||||
|
||||
match shlex::split(&shell) {
|
||||
match shlex::split(shell) {
|
||||
Some(cmd) => {
|
||||
// first argument must be a binary
|
||||
let mut command = Command::new(&cmd[0]);
|
||||
|
@ -1532,7 +1532,7 @@ impl TaskwarriorTuiApp {
|
|||
|
||||
let shell = self.command.as_str();
|
||||
|
||||
match shlex::split(&shell) {
|
||||
match shlex::split(shell) {
|
||||
Some(cmd) => {
|
||||
for s in cmd {
|
||||
command.arg(&s);
|
||||
|
@ -1661,7 +1661,7 @@ impl TaskwarriorTuiApp {
|
|||
|
||||
let shell = self.modify.as_str();
|
||||
|
||||
let r = match shlex::split(&shell) {
|
||||
let r = match shlex::split(shell) {
|
||||
Some(cmd) => {
|
||||
for s in cmd {
|
||||
command.arg(&s);
|
||||
|
@ -1712,7 +1712,7 @@ impl TaskwarriorTuiApp {
|
|||
|
||||
let shell = self.command.as_str();
|
||||
|
||||
let r = match shlex::split(&shell) {
|
||||
let r = match shlex::split(shell) {
|
||||
Some(cmd) => {
|
||||
for s in cmd {
|
||||
command.arg(&s);
|
||||
|
@ -1754,7 +1754,7 @@ impl TaskwarriorTuiApp {
|
|||
|
||||
let shell = self.command.as_str();
|
||||
|
||||
match shlex::split(&shell) {
|
||||
match shlex::split(shell) {
|
||||
Some(cmd) => {
|
||||
for s in cmd {
|
||||
command.arg(&s);
|
||||
|
|
|
@ -189,7 +189,7 @@ impl Config {
|
|||
let attribute = i.next();
|
||||
let line = i.collect::<Vec<_>>().join(" ");
|
||||
let line = line.trim_start_matches(' ');
|
||||
let tcolor = Self::get_tcolor(&line);
|
||||
let tcolor = Self::get_tcolor(line);
|
||||
if let Some(attr) = attribute {
|
||||
color_collection.insert(attr.to_string(), tcolor);
|
||||
};
|
||||
|
|
|
@ -418,7 +418,7 @@ where
|
|||
let s = self.unmark_symbol.unwrap_or(" ").trim_end();
|
||||
format!("{} ", s)
|
||||
}
|
||||
TableMode::SingleSelection => iter::repeat(" ").take(highlight_symbol.width()).collect::<String>(),
|
||||
TableMode::SingleSelection => " ".repeat(highlight_symbol.width()),
|
||||
};
|
||||
|
||||
let mark_highlight_symbol = {
|
||||
|
|
|
@ -159,7 +159,7 @@ impl TaskReportTable {
|
|||
}
|
||||
let mut item = vec![];
|
||||
for name in &self.columns {
|
||||
let s = self.get_string_attribute(name, &task, tasks);
|
||||
let s = self.get_string_attribute(name, task, tasks);
|
||||
item.push(s);
|
||||
}
|
||||
self.tasks.push(item)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue