Skip to content

Commit df35781

Browse files
Fix clippy.
1 parent 5193cb3 commit df35781

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

src/container/decode/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub fn unescape<'s: 'i, 'i>(s: &'s str) -> impl Iterator<Item = &'s str> + 'i {
4949
.filter(move |&(c1, c2)| {
5050
// trace!(r#"c1, c2: "{}", "{}""#, c1, c2);
5151
// FIXME a bug in clippy; https://github.com/rust-lang-nursery/rust-clippy/issues/860
52-
#[cfg_attr(feature = "cargo-clippy", allow(match_same_arms))]
52+
#[allow(clippy::match_same_arms)]
5353
match (esc, c1, c2) {
5454
(false, r"\", "") => true,
5555
(false, r"\", _) => {

src/lib.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#![deny(bare_trait_objects)]
22
#![deny(missing_copy_implementations)]
33
#![deny(missing_debug_implementations)]
4-
#![cfg_attr(feature = "cargo-clippy", allow(items_after_statements))]
5-
#![cfg_attr(feature = "cargo-clippy", allow(match_bool))]
6-
#![cfg_attr(feature = "cargo-clippy", allow(module_inception))]
4+
#![allow(clippy::items_after_statements)]
5+
#![allow(clippy::match_bool)]
6+
#![allow(clippy::module_inception)]
77
// TODO post a bug report; https://github.com/Manishearth/rust-clippy/wiki#regex_macro
88
// false positive, this regex macro implemented in this crate and is not available in the upstream anymore
9-
#![cfg_attr(feature = "cargo-clippy", allow(regex_macro))]
9+
#![allow(clippy::regex_macro)]
1010
#![cfg_attr(feature = "quiet", allow(warnings))]
1111

1212
extern crate base64;
@@ -24,8 +24,6 @@ extern crate num;
2424
extern crate regex;
2525
extern crate roman;
2626
extern crate serde;
27-
//#[macro_use]
28-
//extern crate serde_derive;
2927
extern crate serde_json;
3028
extern crate string_cache;
3129
extern crate unicode_categories as uc;

src/opencorpora/kind/person.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#[cfg_attr(feature = "cargo-clippy", allow(enum_variant_names))]
21
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
32
pub enum Person {
43
/// 1 лицо

0 commit comments

Comments
 (0)