Skip to content

Commit

Permalink
Fix warnings for test struct variant not used (#1151)
Browse files Browse the repository at this point in the history
This addresses the only build warning we have in Mountpoint's own
crates. The remaining build warnings come from the fuser forked crate,
which we plan to address through an upstream contribution.

### Does this change impact existing behavior?

No, avoids import of unused code in a test only.

### Does this change need a changelog entry?

No.

---

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and I agree to the terms of
the [Developer Certificate of Origin
(DCO)](https://developercertificate.org/).

Signed-off-by: Daniel Carl Jones <[email protected]>
  • Loading branch information
dannycjones authored Nov 21, 2024
1 parent 8484341 commit ff191c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mountpoint-s3/tests/fuse_tests/read_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ fn basic_read_test_mock_with_cache(prefix: &str, read_only: bool) {
enum RestorationOptions {
None,
RestoreAndWait,
#[allow(dead_code)]
/// Restore object but do not wait for it to be available for reading.
///
/// Mock client does not implement objects in a 'restoring' state,
/// it simply is or is not restored.
RestoreInProgress,
}

Expand Down

0 comments on commit ff191c1

Please sign in to comment.