Skip to content

Commit c7168ee

Browse files
authored
Remove incorrect expect(unused) annotation (#1789)
Both #1780 and #1778 fixed the `snapshot_exists` function only being used on illumos. Unfortunately, they fixed it in mutually incompatible ways: #1780 added a trivial test to exercise it, while #1778 added an `expect(unused)` annotation. The combination of these two produces a warning on non-illumos machines.
1 parent f50ae68 commit c7168ee

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

integration_tests/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,6 @@ mod integration_tests {
714714
self.downstairs3.address()
715715
}
716716

717-
#[cfg_attr(not(target_os = "illumos"), expect(unused))]
718717
pub fn snapshot_exists(&self, snapshot_name: &str) -> Result<bool> {
719718
Ok(self.downstairs1.snapshot_exists(snapshot_name)?
720719
&& self.downstairs2.snapshot_exists(snapshot_name)?

0 commit comments

Comments
 (0)