simplist 0.0.5

plain and simple http, for when you just want to make a darn request! supports tokio-based async, traditional sync and async-await models.
Documentation
use std::result::Result;


pub trait ResultExt {
    /// consumes this result, ignoring its value
    fn consume(self);

    /// consumes this result, requiring that it is ok(). if `self` is `err`, this method panics.
    fn require_ok(self);
}

impl<T, E> ResultExt for Result<T, E> {
    fn consume(self) {
    }

    fn require_ok(self) {
        if self.is_err() {
            panic!(d!["required result to be ok(), but was err()"]);
        }
    }
}