Skip to content

Commit c5b39a5

Browse files
committed
Version bump
1 parent 475959d commit c5b39a5

File tree

6 files changed

+15
-9
lines changed

6 files changed

+15
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## 0.0.195
5+
* Rustup to *rustc 1.27.0-nightly (ac3c2288f 2018-04-18)*
6+
47
## 0.0.194
58
* Rustup to *rustc 1.27.0-nightly (bd40cbbe1 2018-04-14)*
69
* New lints: [`cast_ptr_alignment`], [`transmute_ptr_to_ptr`], [`write_literal`], [`write_with_newline`], [`writeln_empty_string`]
@@ -710,9 +713,9 @@ All notable changes to this project will be documented in this file.
710713
[`nonsensical_open_options`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#nonsensical_open_options
711714
[`not_unsafe_ptr_arg_deref`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref
712715
[`ok_expect`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#ok_expect
713-
[`map_unit_fn`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#map_unit_fn
714716
[`op_ref`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#op_ref
715717
[`option_map_or_none`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#option_map_or_none
718+
[`option_map_unit_fn`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#option_map_unit_fn
716719
[`option_map_unwrap_or`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#option_map_unwrap_or
717720
[`option_map_unwrap_or_else`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#option_map_unwrap_or_else
718721
[`option_option`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#option_option
@@ -741,6 +744,7 @@ All notable changes to this project will be documented in this file.
741744
[`redundant_pattern`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#redundant_pattern
742745
[`regex_macro`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#regex_macro
743746
[`replace_consts`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#replace_consts
747+
[`result_map_unit_fn`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#result_map_unit_fn
744748
[`result_map_unwrap_or_else`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#result_map_unwrap_or_else
745749
[`result_unwrap_used`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#result_unwrap_used
746750
[`reverse_range_loop`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#reverse_range_loop

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clippy"
3-
version = "0.0.194"
3+
version = "0.0.195"
44
authors = [
55
"Manish Goregaokar <[email protected]>",
66
"Andre Bogus <[email protected]>",
@@ -37,7 +37,7 @@ path = "src/driver.rs"
3737

3838
[dependencies]
3939
# begin automatic update
40-
clippy_lints = { version = "0.0.194", path = "clippy_lints" }
40+
clippy_lints = { version = "0.0.195", path = "clippy_lints" }
4141
# end automatic update
4242
regex = "0.2"
4343
semver = "0.9"

README.md

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

88
A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code.
99

10-
[There are 253 lints included in this crate!](https://rust-lang-nursery.github.io/rust-clippy/master/index.html)
10+
[There are 255 lints included in this crate!](https://rust-lang-nursery.github.io/rust-clippy/master/index.html)
1111

1212
We have a bunch of lint categories to allow you to choose how much clippy is supposed to ~~annoy~~ help you:
1313

clippy_lints/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "clippy_lints"
33
# begin automatic update
4-
version = "0.0.194"
4+
version = "0.0.195"
55
# end automatic update
66
authors = [
77
"Manish Goregaokar <[email protected]>",

clippy_lints/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
443443
if_not_else::IF_NOT_ELSE,
444444
infinite_iter::MAYBE_INFINITE_ITER,
445445
items_after_statements::ITEMS_AFTER_STATEMENTS,
446-
map_unit_fn::OPTION_MAP_UNIT_FN,
447-
map_unit_fn::RESULT_MAP_UNIT_FN,
448446
matches::SINGLE_MATCH_ELSE,
449447
methods::FILTER_MAP,
450448
methods::OPTION_MAP_UNWRAP_OR,
@@ -553,6 +551,8 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
553551
loops::WHILE_LET_LOOP,
554552
loops::WHILE_LET_ON_ITERATOR,
555553
map_clone::MAP_CLONE,
554+
map_unit_fn::OPTION_MAP_UNIT_FN,
555+
map_unit_fn::RESULT_MAP_UNIT_FN,
556556
matches::MATCH_AS_REF,
557557
matches::MATCH_BOOL,
558558
matches::MATCH_OVERLAPPING_ARM,
@@ -774,6 +774,8 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
774774
loops::EXPLICIT_COUNTER_LOOP,
775775
loops::MUT_RANGE_BOUND,
776776
loops::WHILE_LET_LOOP,
777+
map_unit_fn::OPTION_MAP_UNIT_FN,
778+
map_unit_fn::RESULT_MAP_UNIT_FN,
777779
matches::MATCH_AS_REF,
778780
methods::CHARS_NEXT_CMP,
779781
methods::CLONE_ON_COPY,

clippy_lints/src/regex.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
129129
}
130130
}
131131

132-
fn str_span(base: Span, c: regex_syntax::ast::Span, offset: usize) -> Span {
133-
let offset = offset as u32;
132+
fn str_span(base: Span, c: regex_syntax::ast::Span, offset: u16) -> Span {
133+
let offset = u32::from(offset);
134134
let end = base.lo() + BytePos(c.end.offset as u32 + offset);
135135
let start = base.lo() + BytePos(c.start.offset as u32 + offset);
136136
assert!(start <= end);

0 commit comments

Comments
 (0)