Skip to content

Commit

Permalink
Missed import in generalization
Browse files Browse the repository at this point in the history
  • Loading branch information
criminosis committed Oct 8, 2024
1 parent 73564fa commit a7a6045
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gremlin-cli/src/actions/connect.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{actions::Action, command::Command, context::GremlinContext};
use futures::FutureExt;
use gremlin_client::{aio::GremlinClient, ConnectionOptions, GraphSON, TlsOptions};
use gremlin_client::{aio::GremlinClient, ConnectionOptions, Protocol, TlsOptions};
use std::str::FromStr;
use structopt::StructOpt;

Expand Down Expand Up @@ -30,11 +30,11 @@ impl FromStr for Serializer {
}
}

impl From<Serializer> for GraphSON {
impl From<Serializer> for Protocol {
fn from(serializer: Serializer) -> Self {
match serializer {
Serializer::GraphSONV2 => GraphSON::V2,
Serializer::GraphSONV3 => GraphSON::V3,
Serializer::GraphSONV2 => Protocol::GraphSONV2,
Serializer::GraphSONV3 => Protocol::GraphSONV3,
}
}
}
Expand Down

0 comments on commit a7a6045

Please sign in to comment.