File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: 10de8826cd583d61171c118426fe8e9c73a59f2d
32
+ refs/heads/stable: b3e30b5fc3ad49f8d1461a9d181b0853bfc41c9a
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
34
34
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
35
35
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e
Original file line number Diff line number Diff line change @@ -194,8 +194,8 @@ pub trait Hasher {
194
194
/// A `BuildHasher` is typically used as a factory for instances of `Hasher`
195
195
/// which a `HashMap` can then use to hash keys independently.
196
196
///
197
- /// Note that for each instance of `BuildHasher`, the created hashers should be
198
- /// identical. That is, if the same stream of bytes is fed into each hasher, the
197
+ /// Note that for each instance of `BuildHasher` the create hashers should be
198
+ /// identical. That is if the same stream of bytes is fed into each hasher the
199
199
/// same output will also be generated.
200
200
#[ stable( since = "1.7.0" , feature = "build_hasher" ) ]
201
201
pub trait BuildHasher {
Original file line number Diff line number Diff line change @@ -179,9 +179,9 @@ impl Session {
179
179
pub fn track_errors < F , T > ( & self , f : F ) -> Result < T , usize >
180
180
where F : FnOnce ( ) -> T
181
181
{
182
- let mut count = self . err_count ( ) ;
182
+ let count = self . err_count ( ) ;
183
183
let result = f ( ) ;
184
- count - = self . err_count ( ) ;
184
+ let count = self . err_count ( ) - count ;
185
185
if count == 0 {
186
186
Ok ( result)
187
187
} else {
You can’t perform that action at this time.
0 commit comments