![github]![crates-io]![docs-rs]
Build Status

ToUnit; drop to the trash syntax sugar for any types.

Example

``rust use to_unit::ToUnit; // or,use tounit::ToUnit as _` for ultra lay persons!

[test]

fn matcharmstoeasily() { use std::collections::HashMap; let mut x = HashMap::::new(); x.insert("neko".tostring(), 123); match x.getmut("neko") { Some(v) => *v = 222, None => x.insert("neko".tostring(), 222).tounit() // <-- here! } // Ofcorse alternatively, you can write: // eg. None => { x.insert("neko".tostring(), 222); } // But, it might be fix to a multi-line format by rust-fmt then...: // eg. None => { // x.insert("neko".tostring(), 222); // } // I don't like the multi-line behaviors, so I made the _ lib. // } ```

LICENSE

Author