summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2022-08-09 16:28:51 +0200
committerMatthias Beyer <mail@beyermatthias.de>2022-08-09 16:55:22 +0200
commitc9cd09f88b1370e518bbbe70fd31d1da4d39e245 (patch)
tree18462a3c894763d813e85427b2189075296b8cce /src
parentf0e779bbaf2b8801f0ab09f85838ff987404302a (diff)
Use anonymous lifetime here
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src')
-rw-r--r--src/tw.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tw.rs b/src/tw.rs
index 38e7e06..4403c29 100644
--- a/src/tw.rs
+++ b/src/tw.rs
@@ -44,7 +44,7 @@ pub fn run_query_cmd(mut cmd: Command) -> Result<Vec<Task>> {
}
/// This function runs the given Command, pipes the tasks as JSON to it and returns a handle to the child process.
-pub fn save_to_cmd<'a>(tasks: Vec<&'a Task>, mut cmd: Command) -> Result<Child> {
+pub fn save_to_cmd(tasks: Vec<&'_ Task>, mut cmd: Command) -> Result<Child> {
let input_buffer = serde_json::to_string(&tasks).context(EK::SerializeError)?;
let mut import = cmd.spawn().context(EK::TaskCmdError)?;
import