Skip to content

Commit

Permalink
Completes run() -> main() transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Sep 19, 2019
1 parent 8ca02e8 commit 203f4da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/encoding/complex/toml.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct Package {
# }
# }

fn run() -> Result<()> {
fn main() -> Result<()> {
let toml_content = r#"
[package]
name = "your_package"
Expand All @@ -81,6 +81,4 @@ fn run() -> Result<()> {

Ok(())
}
#
# quick_main!(run);
```
4 changes: 1 addition & 3 deletions src/encoding/csv/read.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct Record {
description: String,
}

fn run() -> Result<()> {
fn main() -> Result<()> {
let csv = "year,make,model,description
1948,Porsche,356,Luxury sports car
1967,Ford,Mustang fastback 1967,American car";
Expand All @@ -75,8 +75,6 @@ fn run() -> Result<()> {

Ok(())
}
#
# quick_main!(run);
```

[`csv::ByteRecord`]: https://docs.rs/csv/*/csv/struct.ByteRecord.html
Expand Down
4 changes: 1 addition & 3 deletions src/web/url/origin.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ use url::{Url, Origin, Host};
# }
# }
#
fn run() -> Result<()> {
fn main() -> Result<()> {
let s = "ftp://rust-lang.org/examples";

let url = Url::parse(s)?;
Expand All @@ -55,8 +55,6 @@ fn run() -> Result<()> {

Ok(())
}
#
# quick_main!(run);
```

[`origin`]: https://docs.rs/url/*/url/struct.Url.html#method.origin
Expand Down

0 comments on commit 203f4da

Please sign in to comment.