Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit ed0fa6a

Browse files
king6congYamakaky
authored andcommitted
some minor adjustments
1 parent 62627ed commit ed0fa6a

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

examples/chain_err.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ mod errors {
1414
foreign_links {
1515
Io(io::Error) #[doc = "Error during IO"];
1616
}
17-
17+
1818
errors {
1919
Launch(phase: LaunchStage) {
2020
description("An error occurred during startup")
2121
display("Startup aborted: {:?} did not complete successfully", phase)
2222
}
23-
23+
2424
ConfigLoad(path: String) {
2525
description("Config file not found")
2626
display("Unable to read file `{}`", path)

examples/quickstart.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn alternative_main() {
6363

6464
// Use this macro to auto-generate the main above. You may want to
6565
// set the `RUST_BACKTRACE` env variable to see a backtrace.
66-
//quick_main!(run);
66+
// quick_main!(run);
6767

6868

6969
// Most functions will return the `Result` type, imported from the

tests/tests.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#![allow(dead_code)]
2-
//#![feature(trace_macros)]
3-
//
4-
//trace_macros!(true);
52

63
#[macro_use]
74
extern crate error_chain;
@@ -568,7 +565,7 @@ fn types_declarations() {
568565

569566
#[test]
570567
/// Calling chain_err over a `Result` containing an error to get a chained error
571-
//// and constructing a MyError directly, passing it an error should be equivalent.
568+
/// and constructing a MyError directly, passing it an error should be equivalent.
572569
fn rewrapping() {
573570

574571
use std::env::VarError::{self, NotPresent, NotUnicode};

0 commit comments

Comments
 (0)