Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Commit

Permalink
Format sources
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatyping committed Jun 1, 2018
1 parent 9a20421 commit ef19919
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use reqwest::Client;

use compiler::Compiler;
use language::Language;
use source::{Output, Filters, Options, Source};
use source::{Filters, Options, Output, Source};

pub fn get_languages(client: Client) -> Vec<Language> {
client
Expand Down Expand Up @@ -56,14 +56,14 @@ pub fn compile(client: Client, src: String, compiler: &str, args: String) -> Str
let mut res = String::new();
if output.code != 0 {
for line in output.stderr {
res.push_str(&line.text);
res.push_str(&line.text);
res.push('\n');
}
} else {
for line in output.asm {
res.push_str(&line.text);
res.push_str(&line.text);
res.push('\n');
}
}
}
return res;
}

0 comments on commit ef19919

Please sign in to comment.