Skip to content

Commit

Permalink
cargo edition upgrade to 2021
Browse files Browse the repository at this point in the history
  • Loading branch information
lorislibralato committed Jul 21, 2022
1 parent 7bd6d95 commit 44592e8
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bin/scrape-docs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "scrape-docs"
version = "0.1.0"
authors = ["Lonami Exo <totufals@hotmail.com>"]
edition = "2018"
edition = "2021"

[dependencies]
reqwest = "0.11.3"
Expand Down
4 changes: 2 additions & 2 deletions bin/tl-to-json/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
name = "tl-to-json"
version = "0.1.0"
authors = ["Lonami Exo <totufals@hotmail.com>"]
edition = "2018"
edition = "2021"

[dependencies]
grammers-tl-parser = { path = "../../lib/grammers-tl-parser", version = "1.0.0" }
grammers-tl-parser = { path = "../../lib/grammers-tl-parser", version = "1.0.1" }
serde = { version = "1.0.125", features = ["derive"] }
serde_json = "1.0.64"
2 changes: 1 addition & 1 deletion lib/grammers-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ documentation = "https://docs.rs/grammers-client"
repository = "https://github.com/Lonami/grammers"
keywords = ["mtproto", "telegram", "tl"]
categories = ["api-bindings"]
edition = "2018"
edition = "2021"

[features]
markdown = ["pulldown-cmark"]
Expand Down
2 changes: 1 addition & 1 deletion lib/grammers-client/src/client/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ impl Client {
/// Ok(user) => user,
/// Ok(_) => panic!("Sign in required"),
/// Err(err) => {
/// panic!("Failed to sign in as a user :(\n{}");
/// panic!("Failed to sign in as a user :(\n{err}");
/// }
/// };
/// # Ok(())
Expand Down
2 changes: 1 addition & 1 deletion lib/grammers-crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ documentation = "https://docs.rs/grammers-crypto"
repository = "https://github.com/Lonami/grammers"
keywords = ["telegram", "tl"]
categories = ["cryptography"]
edition = "2018"
edition = "2021"

[dependencies]
aes = "0.7.0"
Expand Down
2 changes: 1 addition & 1 deletion lib/grammers-mtproto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ documentation = "https://docs.rs/grammers-mtproto"
repository = "https://github.com/Lonami/grammers"
keywords = ["mtproto", "telegram", "tl"]
categories = ["network-programming"]
edition = "2018"
edition = "2021"

[dependencies]
bytes = "1.0.1"
Expand Down
2 changes: 1 addition & 1 deletion lib/grammers-mtsender/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ documentation = "https://docs.rs/grammers-mtsender"
repository = "https://github.com/Lonami/grammers"
keywords = ["api", "mtproto", "telegram", "tl"]
categories = ["api-bindings", "network-programming"]
edition = "2018"
edition = "2021"

[dependencies]
bytes = "1.0.1"
Expand Down
2 changes: 1 addition & 1 deletion lib/grammers-session/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ documentation = "https://docs.rs/grammers-session"
repository = "https://github.com/Lonami/grammers"
keywords = ["telegram", "tl"]
categories = []
edition = "2018"
edition = "2021"

[dependencies]
grammers-tl-types = { path = "../grammers-tl-types", version = "0.3.0" }
Expand Down
2 changes: 1 addition & 1 deletion lib/grammers-tl-gen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ documentation = "https://docs.rs/grammers-tl-gen"
repository = "https://github.com/Lonami/grammers"
keywords = ["telegram", "tl"]
categories = []
edition = "2018"
edition = "2021"

[dependencies]
grammers-tl-parser = { path = "../grammers-tl-parser", version = "1.0.1" }
Expand Down
2 changes: 1 addition & 1 deletion lib/grammers-tl-parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ documentation = "https://docs.rs/grammers-tl-parser"
repository = "https://github.com/Lonami/grammers"
keywords = ["telegram", "tl"]
categories = ["parser-implementations"]
edition = "2018"
edition = "2021"

[dependencies]
crc32fast = "1.2.1"
Expand Down
2 changes: 1 addition & 1 deletion lib/grammers-tl-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ documentation = "https://docs.rs/grammers-tl-types"
repository = "https://github.com/Lonami/grammers"
keywords = ["telegram", "tl"]
categories = ["data-structures", "encoding"]
edition = "2018"
edition = "2021"
include = [
"build.rs",
"src/*.rs",
Expand Down
4 changes: 2 additions & 2 deletions lib/grammers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ homepage = "https://github.com/Lonami/grammers"
repository = "https://github.com/Lonami/grammers"
keywords = ["telegram", "tl"]
categories = []
edition = "2018"
edition = "2021"

[dependencies]
grammers-client = "0.1.0"
grammers-client = "0.3.0"

0 comments on commit 44592e8

Please sign in to comment.