diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-04-22 10:34:06 +0900 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-22 10:34:06 +0900 | 
| commit | f28e3873c55eb4bdcfc496e1f300b97aeb0d189c (patch) | |
| tree | cf842e5abce7ab4af730230b342c338fb93079f8 /src/libcore/iter/sources.rs | |
| parent | 567e54fca5e864f95cd41ca05c113aa6b18d7006 (diff) | |
| parent | 9af047ff74f79911b6e251cd1751be8644437158 (diff) | |
| download | rust-f28e3873c55eb4bdcfc496e1f300b97aeb0d189c.tar.gz rust-f28e3873c55eb4bdcfc496e1f300b97aeb0d189c.zip | |
Rollup merge of #71366 - faern:use-assoc-int-consts3, r=dtolnay
Use assoc int consts3 Define module level int consts with associated constants instead of `min_value()` and `max_value()`. So the code become consistent with what the docs recommend etc. Seems natural. Also remove the last usages of the int module constants from this repo (except src/test/ directory which I have still not really done anything in). Some places were missed in the previous PRs because the code uses `crate::<IntTy>` to reach the constants. This is a continuation of #70857 r? @dtolnay
Diffstat (limited to 'src/libcore/iter/sources.rs')
| -rw-r--r-- | src/libcore/iter/sources.rs | 1 | 
1 files changed, 0 insertions, 1 deletions
| diff --git a/src/libcore/iter/sources.rs b/src/libcore/iter/sources.rs index a1d4e1b31e9..d76fa89bd01 100644 --- a/src/libcore/iter/sources.rs +++ b/src/libcore/iter/sources.rs @@ -1,6 +1,5 @@ use crate::fmt; use crate::marker; -use crate::usize; use super::{FusedIterator, TrustedLen}; | 
