diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2022-08-09 16:28:51 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2022-08-09 16:55:22 +0200 |
commit | c9cd09f88b1370e518bbbe70fd31d1da4d39e245 (patch) | |
tree | 18462a3c894763d813e85427b2189075296b8cce /src | |
parent | f0e779bbaf2b8801f0ab09f85838ff987404302a (diff) |
Use anonymous lifetime here
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/tw.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |