Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemIsmagilov committed Nov 10, 2024
1 parent 84831c3 commit 1bc23be
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/commands/server_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ pub trait ServerCommands<'a> {
/// # Example
/// ```
/// # use rustis::{
/// # client::{Client, ClientPreparedCommand},
/// # commands::{FlushingMode, GetExOptions, GenericCommands, ServerCommands, StringCommands},
/// # client::Client,
/// # commands::{ServerCommands, AclDryRunOptions},
/// # resp::cmd,
/// # Result,
/// # };
Expand All @@ -74,9 +74,8 @@ pub trait ServerCommands<'a> {
/// # #[cfg_attr(feature = "async-std-runtime", async_std::main)]
/// # async fn main() -> Result<()> {
/// # let client = Client::connect("127.0.0.1:6379").await?;
/// # client.flushdb(FlushingMode::Sync).await?;
/// # client.acl_setuser("VIRGINIA", ["+SET", "~*"]).await?;
/// let _: () = client
/// client
/// .acl_dryrun(
/// "VIRGINIA",
/// "SET",
Expand All @@ -85,7 +84,11 @@ pub trait ServerCommands<'a> {
/// .await?;
///
/// let result: String = client
/// .acl_dryrun("VIRGINIA", "GET", AclDryRunOptions::default().arg("foo"))
/// .acl_dryrun(
/// "VIRGINIA",
/// "GET",
/// AclDryRunOptions::default().arg("foo")
/// )
/// .await?;
///
/// assert_eq!(
Expand Down

0 comments on commit 1bc23be

Please sign in to comment.