Skip to content

Commit b8c921d

Browse files
committed
Fixed linter based on rust 1.80.0
1 parent c7b598b commit b8c921d

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

redis/src/client.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -687,10 +687,10 @@ impl Client {
687687
///
688688
/// - `conn_info` - URL using the `rediss://` scheme.
689689
/// - `tls_certs` - `TlsCertificates` structure containing:
690-
/// -- `client_tls` - Optional `ClientTlsConfig` containing byte streams for
691-
/// --- `client_cert` - client's byte stream containing client certificate in PEM format
692-
/// --- `client_key` - client's byte stream containing private key in PEM format
693-
/// -- `root_cert` - Optional byte stream yielding PEM formatted file for root certificates.
690+
/// -- `client_tls` - Optional `ClientTlsConfig` containing byte streams for
691+
/// --- `client_cert` - client's byte stream containing client certificate in PEM format
692+
/// --- `client_key` - client's byte stream containing private key in PEM format
693+
/// -- `root_cert` - Optional byte stream yielding PEM formatted file for root certificates.
694694
///
695695
/// If `ClientTlsConfig` ( cert+key pair ) is not provided, then client-side authentication is not enabled.
696696
/// If `root_cert` is not provided, then system root certificates are used instead.

redis/src/cluster_async/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ where
150150
/// # Arguments
151151
///
152152
/// * `scan_state_rc` - A reference to the scan state, For initiating new scan send [`ScanStateRC::new()`],
153-
/// for each subsequent iteration use the returned [`ScanStateRC`].
153+
/// for each subsequent iteration use the returned [`ScanStateRC`].
154154
/// * `count` - An optional count of keys requested,
155-
/// the amount returned can vary and not obligated to return exactly count.
155+
/// the amount returned can vary and not obligated to return exactly count.
156156
/// * `object_type` - An optional [`ObjectType`] enum of requested key redis type.
157157
///
158158
/// # Returns
@@ -209,10 +209,10 @@ where
209209
/// # Arguments
210210
///
211211
/// * `scan_state_rc` - A reference to the scan state, For initiating new scan send [`ScanStateRC::new()`],
212-
/// for each subsequent iteration use the returned [`ScanStateRC`].
212+
/// for each subsequent iteration use the returned [`ScanStateRC`].
213213
/// * `match_pattern` - A match pattern of requested keys.
214214
/// * `count` - An optional count of keys requested,
215-
/// the amount returned can vary and not obligated to return exactly count.
215+
/// the amount returned can vary and not obligated to return exactly count.
216216
/// * `object_type` - An optional [`ObjectType`] enum of requested key redis type.
217217
///
218218
/// # Returns

redis/src/cluster_client.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,10 @@ impl ClusterClientBuilder {
358358
/// checked during `build()` call.
359359
///
360360
/// - `certificates` - `TlsCertificates` structure containing:
361-
/// -- `client_tls` - Optional `ClientTlsConfig` containing byte streams for
362-
/// --- `client_cert` - client's byte stream containing client certificate in PEM format
363-
/// --- `client_key` - client's byte stream containing private key in PEM format
364-
/// -- `root_cert` - Optional byte stream yielding PEM formatted file for root certificates.
361+
/// -- `client_tls` - Optional `ClientTlsConfig` containing byte streams for
362+
/// --- `client_cert` - client's byte stream containing client certificate in PEM format
363+
/// --- `client_key` - client's byte stream containing private key in PEM format
364+
/// -- `root_cert` - Optional byte stream yielding PEM formatted file for root certificates.
365365
///
366366
/// If `ClientTlsConfig` ( cert+key pair ) is not provided, then client-side authentication is not enabled.
367367
/// If `root_cert` is not provided, then system root certificates are used instead.

redis/tests/support/cluster.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl RedisCluster {
160160
cmd.arg("--cluster-enabled")
161161
.arg("yes")
162162
.arg("--cluster-config-file")
163-
.arg(&tempdir.path().join("nodes.conf"))
163+
.arg(tempdir.path().join("nodes.conf"))
164164
.arg("--cluster-node-timeout")
165165
.arg("5000")
166166
.arg("--appendonly")

redis/tests/support/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ impl RedisServer {
296296
// prepare redis with TLS
297297
redis_cmd
298298
.arg("--tls-port")
299-
.arg(&port.to_string())
299+
.arg(port.to_string())
300300
.arg("--port")
301301
.arg("0")
302302
.arg("--tls-cert-file")

redis/tests/test_basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ mod basic {
938938
assert_eq!(con.mset(&[("key1", 1), ("key2", 2)]), Ok(()));
939939
assert_eq!(con.get(&["key1", "key2"]), Ok((1, 2)));
940940
assert_eq!(con.get(vec!["key1", "key2"]), Ok((1, 2)));
941-
assert_eq!(con.get(&vec!["key1", "key2"]), Ok((1, 2)));
941+
assert_eq!(con.get(vec!["key1", "key2"]), Ok((1, 2)));
942942
}
943943

944944
#[test]

redis/tests/test_types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ mod types {
2525
/// The `FromRedisValue` trait provides two methods for parsing:
2626
/// - `fn from_redis_value(&Value) -> Result<T, RedisError>`
2727
/// - `fn from_owned_redis_value(Value) -> Result<T, RedisError>`
28-
/// The `RedisParseMode` below allows choosing between the two
29-
/// so that test logic does not need to be duplicated for each.
28+
/// The `RedisParseMode` below allows choosing between the two
29+
/// so that test logic does not need to be duplicated for each.
3030
enum RedisParseMode {
3131
Owned,
3232
Ref,

0 commit comments

Comments
 (0)