Skip to content

Commit 461b1da

Browse files
committed
Fix doctest and simplify workflow
1 parent c72000a commit 461b1da

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

.github/workflows/rust-test.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ jobs:
4141

4242
- uses: Swatinem/rust-cache@v2
4343

44-
- name: Install native libs
45-
run: sudo apt-get install -y libkrb5-dev
46-
4744
- name: build and lint with clippy
4845
run: cargo clippy --all-targets --features integration-test -- -D warnings
4946

@@ -84,14 +81,5 @@ jobs:
8481
distribution: "temurin"
8582
java-version: "17"
8683

87-
- name: Install native libs
88-
run: sudo apt-get install -y libkrb5-dev krb5-user
89-
90-
- name: Download Hadoop
91-
run: |
92-
wget -q https://dlcdn.apache.org/hadoop/common/hadoop-3.4.0/hadoop-3.4.0.tar.gz
93-
tar -xf hadoop-3.4.0.tar.gz -C $GITHUB_WORKSPACE
94-
echo "$GITHUB_WORKSPACE/hadoop-3.4.0/bin" >> $GITHUB_PATH
95-
9684
- name: Run tests
9785
run: cargo test --features integration-test

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl HdfsObjectStore {
105105
/// use hdfs_native::ClientBuilder;
106106
/// # use hdfs_native_object_store::HdfsObjectStore;
107107
/// let client = ClientBuilder::new().with_url("hdfs://127.0.0.1:9000").build().unwrap();
108-
/// let store = HdfsObjectStore::new(Arc::new(client));
108+
/// let store = HdfsObjectStore::new(client);
109109
/// ```
110110
pub fn new(client: Client) -> Self {
111111
Self { client }

0 commit comments

Comments
 (0)