rustfmt-snippet 0.1.2

Format given Rust code snippet with rustfmt
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented1 out of 3 items with examples
  • Size
  • Source code size: 2.43 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 134.6 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kvinwang

Format given Rust code snippet with rustfmt

#Example

   let formated = rustfmt_snippet::rustfmt(
       r#"fn main() {
       }"#,
   )
   .unwrap();
   assert_eq!(formated, "fn main() {}\n");