Rename jobs::Tag to jobs::FilterTag

This commit is contained in:
cosineblast
2025-03-26 07:10:05 -03:00
parent 4c716cef75
commit 4f1cca8501
3 changed files with 10 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
use std::{sync::mpsc::RecvTimeoutError, time::Duration};
use nu_engine::command_prelude::*;
use nu_protocol::engine::Tag;
use nu_protocol::engine::FilterTag;
#[derive(Clone)]
pub struct JobRecv;
@@ -68,7 +68,7 @@ in no particular order, regardless of the specified timeout parameter.
}
}
let tag = tag_arg.map(|it| it.item as Tag);
let tag = tag_arg.map(|it| it.item as FilterTag);
let duration: Option<i64> = call.get_flag(engine_state, stack, "timeout")?;

View File

@@ -1,5 +1,5 @@
use nu_engine::command_prelude::*;
use nu_protocol::{engine::Tag, JobId};
use nu_protocol::{engine::FilterTag, JobId};
#[derive(Clone)]
pub struct JobSend;
@@ -67,7 +67,7 @@ This command never blocks.
}
}
let tag = tag_arg.map(|it| it.item as Tag);
let tag = tag_arg.map(|it| it.item as FilterTag);
let value = input.into_value(head)?;