Skip to content

Commit

Permalink
Added rustfmt file and formated codebase
Browse files Browse the repository at this point in the history
Fixes #75
  • Loading branch information
TheDan64 committed May 14, 2022
1 parent 6ab2b19 commit 56b0158
Show file tree
Hide file tree
Showing 66 changed files with 3,496 additions and 3,384 deletions.
11 changes: 11 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 1,11 @@
# comment_width = 100
# format_code_in_doc_comments = true
# imports_granularity = "Module"
# match_arm_blocks = false
match_block_trailing_comma = true
max_width = 120
merge_derives = true
newline_style = "Unix"
use_field_init_shorthand = true
use_try_shorthand = true
# wrap_comments = true
3 changes: 1 addition & 2 deletions examples/jit.rs
Original file line number Diff line number Diff line change
@@ -1,10 1,10 @@
extern crate inkwell;

use inkwell::OptimizationLevel;
use inkwell::builder::Builder;
use inkwell::context::Context;
use inkwell::execution_engine::{ExecutionEngine, JitFunction};
use inkwell::module::Module;
use inkwell::OptimizationLevel;

use std::error::Error;

Expand Down Expand Up @@ -43,7 43,6 @@ impl<'ctx> CodeGen<'ctx> {
}
}


fn main() -> Result<(), Box<dyn Error>> {
let context = Context::create();
let module = context.create_module("sum");
Expand Down
Loading

0 comments on commit 56b0158

Please sign in to comment.