Skip to content

Commit 44b2797

Browse files
authored
Fix new clippy lint (#99)
1 parent da2ec6d commit 44b2797

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

.github/workflows/rust-test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ jobs:
9494

9595
- name: Download Hadoop
9696
run: |
97-
wget -q https://dlcdn.apache.org/hadoop/common/hadoop-3.3.6/hadoop-3.3.6.tar.gz
98-
tar -xf hadoop-3.3.6.tar.gz -C $GITHUB_WORKSPACE
99-
echo "$GITHUB_WORKSPACE/hadoop-3.3.6/bin" >> $GITHUB_PATH
97+
wget -q https://dlcdn.apache.org/hadoop/common/hadoop-3.4.0/hadoop-3.4.0.tar.gz
98+
tar -xf hadoop-3.4.0.tar.gz -C $GITHUB_WORKSPACE
99+
echo "$GITHUB_WORKSPACE/hadoop-3.4.0/bin" >> $GITHUB_PATH
100100
101101
- name: Run tests
102102
run: cargo test --features kerberos,integration-test

Cargo.lock

+2-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/hdfs-native/Cargo.toml

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ cipher = "0.4"
2020
crc = "3.2"
2121
ctr = "0.9"
2222
des = "0.8"
23+
# Just used for benchmarks
24+
fs-hdfs3 = { version = "0.1.12", optional = true }
2325
futures = { workspace = true }
2426
g2p = "1"
2527
hex = "0.4"
2628
hmac = "0.12"
2729
libc = "0.2"
28-
libgssapi = { version = "0.7", default-features = false, optional = true }
30+
libgssapi = { version = "0.7", default-features = false, optional = true, git = "https://github.com/Kimahriman/libgssapi.git", branch = "raw-slice-panic" }
2931
log = { workspace = true }
3032
md-5 = "0.10"
3133
num-traits = "0.2"
@@ -50,7 +52,6 @@ protobuf-src = { version = "1.1", optional = true }
5052
[dev-dependencies]
5153
criterion = { version = "0.5", features = ["async_tokio", "async_futures"] }
5254
env_logger = "0.10"
53-
fs-hdfs3 = "0.1.12"
5455
serial_test = "2.0.0"
5556
tempfile = "3"
5657
which = "4"
@@ -60,7 +61,7 @@ kerberos = ["libgssapi"]
6061

6162
generate-protobuf = ["prost-build", "protobuf-src"]
6263
integration-test = ["which"]
63-
benchmark = ["which"]
64+
benchmark = ["fs-hdfs3", "which"]
6465

6566
[[bench]]
6667
name = "ec"

crates/hdfs-native/src/hdfs/protocol.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ impl NamenodeProtocol {
170170
Ok(encryption_key.clone())
171171
} else {
172172
let key = self.get_data_encryption_key().await?.data_encryption_key;
173-
*encryption_key = key.clone();
173+
encryption_key.clone_from(&key);
174174
Ok(key)
175175
}
176176
} else {

0 commit comments

Comments
 (0)