Skip to content

Commit

Permalink
Run cargo fmt and enable monocodus (gfx-rs#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
JCapucho committed Jun 9, 2020
1 parent b91b9ca commit f94b486
Show file tree
Hide file tree
Showing 11 changed files with 1,053 additions and 679 deletions.
2 changes: 0 additions & 2 deletions .monocodus
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ version: 1.0.0
rust:
formatter:
name: rustfmt
ignore_paths:
- ".*"
7 changes: 3 additions & 4 deletions examples/convert.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use serde::{Serialize, Deserialize};
use serde::{Deserialize, Serialize};
use std::{env, fs};

#[derive(Hash, PartialEq, Eq, Serialize, Deserialize)]
Expand Down Expand Up @@ -27,7 +27,7 @@ fn main() {

let module = if args.len() <= 1 {
println!("Call with <input> <output>");
return
return;
} else if args[1].ends_with(".spv") {
let input = fs::read(&args[1]).unwrap();
naga::front::spirv::parse_u8_slice(&input).unwrap()
Expand All @@ -43,8 +43,7 @@ fn main() {
return;
}

let param_path = std::path::PathBuf::from(&args[1])
.with_extension("ron");
let param_path = std::path::PathBuf::from(&args[1]).with_extension("ron");
let params = match fs::read_to_string(param_path) {
Ok(string) => ron::de::from_str(&string).unwrap(),
Err(_) => Parameters::default(),
Expand Down
2 changes: 1 addition & 1 deletion src/back/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub mod msl;
pub mod msl;
Loading

0 comments on commit f94b486

Please sign in to comment.