fix unused code
This commit is contained in:
parent
35c9be1837
commit
9466be194b
2 changed files with 7 additions and 0 deletions
|
@ -210,8 +210,11 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn format_channel_enums() {
|
||||
#[cfg(feature = "search")]
|
||||
assert_eq!(format!("{}", ChannelMode::Search), String::from("search"));
|
||||
#[cfg(feature = "ingest")]
|
||||
assert_eq!(format!("{}", ChannelMode::Ingest), String::from("ingest"));
|
||||
#[cfg(feature = "control")]
|
||||
assert_eq!(format!("{}", ChannelMode::Control), String::from("control"));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -111,6 +111,7 @@ impl Dest {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "ingest")]
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct OptDest {
|
||||
pub(crate) collection: String,
|
||||
|
@ -118,6 +119,7 @@ pub(crate) struct OptDest {
|
|||
pub(crate) object: Option<String>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "ingest")]
|
||||
impl OptDest {
|
||||
pub(crate) fn col(c: impl ToString) -> Self {
|
||||
Self {
|
||||
|
@ -144,6 +146,7 @@ impl OptDest {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "ingest")]
|
||||
impl From<Dest> for OptDest {
|
||||
fn from(d: Dest) -> Self {
|
||||
Self {
|
||||
|
@ -154,6 +157,7 @@ impl From<Dest> for OptDest {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "ingest")]
|
||||
impl From<ObjDest> for OptDest {
|
||||
fn from(ObjDest(dest, obj): ObjDest) -> Self {
|
||||
Self {
|
||||
|
|
Loading…
Reference in a new issue