forked from MightyPork/elefren-fork
reformatted example and made it the README example.
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user