Skip to content

Commit

Permalink
Switch to Rust 2021 edition
Browse files Browse the repository at this point in the history
  • Loading branch information
flosse authored and fosskers committed Dec 9, 2021
1 parent 7610b71 commit 8f66a11
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ documentation = "https://docs.rs/seed"
readme = "README.md"
keywords = ["wasm", "webassembly", "frontend", "framework", "web"]
categories = ["wasm", "web-programming"]
edition = "2018"
edition = "2021"

build = "build.rs"

Expand Down
2 changes: 1 addition & 1 deletion examples/e2e_encryption/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "client"
version = "0.1.0"
authors = ["Your Name <email@address.com>"]
edition = "2018"
edition = "2021"

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 0 additions & 1 deletion examples/e2e_encryption/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use shared::{
rand_core::OsRng,
DefaultCipherSuite,
};
use std::convert::TryInto;

// ------ ------
// Init
Expand Down
2 changes: 1 addition & 1 deletion examples/e2e_encryption/server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "server"
version = "0.1.0"
authors = ["Your Name <email@address.com>"]
edition = "2018"
edition = "2021"

[dependencies]
tokio = { version = "0.2", features = ["full"] } # sync with the one in `warp`
Expand Down
1 change: 0 additions & 1 deletion examples/e2e_encryption/server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use shared::{
rand_core::OsRng,
DefaultCipherSuite,
};
use std::convert::{TryFrom, TryInto};
use std::sync::Arc;
use tokio::sync::Mutex;
use warp::hyper::body::Bytes;
Expand Down
1 change: 0 additions & 1 deletion src/app/streams/backoff_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use futures::channel::mpsc;
use futures::stream::Stream;
use gloo_timers::callback::Timeout;
use rand::{rngs::SmallRng, Rng, SeedableRng};
use std::convert::TryFrom;
use std::pin::Pin;
use std::rc::Rc;
use std::task::{Context, Poll};
Expand Down
1 change: 0 additions & 1 deletion src/browser/fetch/header.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! HTTP headers
use std::borrow::Cow;
use std::iter::FromIterator;

// ------ Headers ------

Expand Down
2 changes: 1 addition & 1 deletion src/browser/fetch/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use gloo_timers::callback::Timeout;
use js_sys::Uint8Array;
use serde::Serialize;
use serde_wasm_bindgen as swb;
use std::{borrow::Cow, cell::RefCell, convert::TryFrom, rc::Rc};
use std::{borrow::Cow, cell::RefCell, rc::Rc};
use wasm_bindgen::JsValue;

/// Its methods configure the request, and handle the response. Many of them return the original
Expand Down

0 comments on commit 8f66a11

Please # to comment.