Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
vigoo committed Mar 2, 2024
1 parent ee6ad8b commit 9ab5078
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/context/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ impl<'docker_client> Db<'docker_client> {
_node: _,
} => DbInfo::Postgres(PostgresInfo {
host: host.clone(),
port: port.clone(),
local_port: local_port.clone(),
port: *port,
local_port: *local_port,
database_name: "postgres".to_owned(),
username: "postgres".to_owned(),
password: "postgres".to_owned(),
Expand Down
8 changes: 4 additions & 4 deletions tests/context/redis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ impl<'docker_client> Redis<'docker_client> {

Ok(Redis {
host: "localhost".to_string(),
port: port,
port,
inner: RedisInner::Process {
child: child,
monitor_child: monitor_child,
child,
monitor_child,
},
})
}
Expand Down Expand Up @@ -181,7 +181,7 @@ impl<'docker_client> Redis<'docker_client> {

fn start_docker(docker: &'docker_client clients::Cli) -> Result<Redis<'docker_client>, Failed> {
let name = "golem_redis";
let image = RunnableImage::from(testcontainers_modules::redis::Redis::default())
let image = RunnableImage::from(testcontainers_modules::redis::Redis)
.with_tag("7.2")
.with_container_name(name)
.with_network(NETWORK);
Expand Down
4 changes: 2 additions & 2 deletions tests/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ fn make_template(
) -> Result<TemplateView, Failed> {
let env_service = context.env.wasm_root.join("environment-service.wasm");
let cfg = &cli.config;
Ok(cli.run(&[
cli.run(&[
"template",
"add",
&cfg.arg('t', "template-name"),
&template_name,
env_service.to_str().unwrap(),
])?)
])
}

fn worker_new_instance(
Expand Down

0 comments on commit 9ab5078

Please sign in to comment.