reformatted example and made it the README example.

This commit is contained in:
Aaron Power
2018-02-12 00:15:35 +00:00
parent 4984dfaacf
commit 43858e5729
2 changed files with 45 additions and 16 deletions
+4 -2
View File
@@ -1,11 +1,13 @@
extern crate mammut;
extern crate toml;
use mammut::{Data, Mastodon, Registration};
use mammut::apps::{AppBuilder, Scopes};
use std::io;
use std::fs::File;
use std::io::prelude::*;
use mammut::{Data, Mastodon, Registration};
use mammut::apps::{AppBuilder, Scopes};
fn main() {
let mastodon = match File::open("mastodon-data.toml") {
Ok(mut file) => {