Skip to content

Commit ed37435

Browse files
Seulgi Kimsgkim126
authored andcommitted
Use the published never-type library
1 parent eaf84be commit ed37435

File tree

17 files changed

+31
-31
lines changed

17 files changed

+31
-31
lines changed

Cargo.lock

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ kvdb = { path = "util/kvdb" }
3939
kvdb-rocksdb = { path = "util/kvdb-rocksdb" }
4040
log = "0.4.6"
4141
env_logger = "0.5.3"
42-
never = { git = "https://github.com/CodeChain-io/rust-never.git" }
42+
never-type = "0.1.0"
4343
panic_hook = { path = "util/panic_hook" }
4444
parking_lot = "0.6.0"
4545
primitives = { git = "https://github.com/CodeChain-io/rust-codechain-primitives.git", version = "0.4" }

codechain/config/chain_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use std::str::FromStr;
1818
use std::{fmt, fs};
1919

2020
use ccore::Scheme;
21-
use never::Never;
21+
use never_type::Never;
2222

2323
#[derive(Clone, Debug, PartialEq, Deserialize)]
2424
#[serde(rename_all = "snake_case")]

codechain/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ extern crate fdlimit;
4848
extern crate finally_block;
4949
extern crate kvdb;
5050
extern crate kvdb_rocksdb;
51-
extern crate never;
51+
extern crate never_type;
5252
extern crate panic_hook;
5353
extern crate parking_lot;
5454
extern crate primitives;

discovery/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ codechain-logger = { path = "../util/logger" }
1010
codechain-network = { path = "../network" }
1111
codechain-timer = { path = "../util/timer" }
1212
log = "0.4.6"
13-
never = { git = "https://github.com/CodeChain-io/rust-never.git" }
13+
never-type = "0.1.0"
1414
parking_lot = "0.6.0"
1515
primitives = { git = "https://github.com/CodeChain-io/rust-codechain-primitives.git", version = "0.4" }
1616
rand = "0.6.1"

discovery/src/extension.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use std::sync::Arc;
1919

2020
use cnetwork::{Api, IntoSocketAddr, NetworkExtension, NodeId, RoutingTable};
2121
use ctimer::TimerToken;
22-
use never::Never;
22+
use never_type::Never;
2323
use rand::prelude::SliceRandom;
2424
use rand::thread_rng;
2525
use rlp::{Decodable, Encodable, UntrustedRlp};

discovery/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#[macro_use]
2020
extern crate log;
21-
extern crate never;
21+
extern crate never_type;
2222
extern crate parking_lot;
2323
extern crate primitives;
2424
extern crate rand;

key/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ rustc-serialize = "0.3"
1010
lazy_static = "1.2"
1111
bech32 = "0.2.2"
1212
codechain-crypto = { path = "../crypto" }
13-
never = { git = "https://github.com/CodeChain-io/rust-never.git" }
13+
never-type = "0.1.0"
1414
parking_lot = "0.6.0"
1515
primitives = { git = "https://github.com/CodeChain-io/rust-codechain-primitives.git", version = "0.4" }
1616
rand_xorshift = "0.1.0"

key/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ extern crate codechain_crypto as crypto;
1818
#[macro_use]
1919
extern crate lazy_static;
2020
extern crate bech32;
21-
extern crate never;
21+
extern crate never_type;
2222
extern crate parking_lot;
2323
extern crate primitives;
2424
extern crate rand;

key/src/password.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use std::str::FromStr;
1818
use std::{fmt, ptr};
1919

2020
use crypto::Password as CryptoPassword;
21-
use never::Never;
21+
use never_type::Never;
2222

2323
#[derive(Clone, Default, PartialEq, Eq, Serialize, Deserialize)]
2424
pub struct Password(String);

0 commit comments

Comments
 (0)