We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72f8a0b commit e1c5e82Copy full SHA for e1c5e82
src/raw/client.rs
@@ -744,11 +744,19 @@ impl<PdC: PdClient> Client<PdC> {
744
}
745
746
fn assert_non_atomic(&self) -> Result<()> {
747
- (!self.atomic).then_some(()).ok_or(Error::UnsupportedMode)
+ if !self.atomic {
748
+ Ok(())
749
+ } else {
750
+ Err(Error::UnsupportedMode)
751
+ }
752
753
754
fn assert_atomic(&self) -> Result<()> {
- self.atomic.then_some(()).ok_or(Error::UnsupportedMode)
755
+ if self.atomic {
756
757
758
759
760
761
762
0 commit comments