(self, boolean: bool)
| 66 | } |
| 67 | |
| 68 | fn visit_bool<E>(self, boolean: bool) -> Result<Self::Value, E> |
| 69 | where |
| 70 | E: de::Error, |
| 71 | { |
| 72 | if boolean == V { |
| 73 | Ok(ConstBool::<V>) |
| 74 | } else { |
| 75 | Err(E::invalid_value(Unexpected::Bool(boolean), &self)) |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | #[cfg(test)] |