Skip to content

Commit

Permalink
Don't compile main() for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
James Sanderson committed Aug 23, 2014
1 parent e9c8f04 commit 2a88532
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hex_to_base64.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
mod hex;

#[cfg(not(test))]
fn main() {
println!("Output: {}", hex::hex_to_int('0'));
}

0 comments on commit 2a88532

Please sign in to comment.