Use new tool attributes syntax

pull/10/head
Tpt 6 years ago
parent 6862fd346e
commit a63b81be8c
  1. 58
      lib/src/lib.rs
  2. 15
      lib/src/rio/ntriples/mod.rs
  3. 15
      lib/src/rio/turtle/mod.rs
  4. 21
      lib/src/sparql/parser.rs
  5. 2
      python/src/lib.rs

@ -8,37 +8,33 @@
//! * A memory based and a disk based stores in the `store` package //! * A memory based and a disk based stores in the `store` package
//! * A work in progress SPARQL implementation in the `sparql` package //! * A work in progress SPARQL implementation in the `sparql` package
#![cfg_attr( #![warn(
feature = "cargo-clippy", clippy::cast_possible_wrap,
warn( clippy::cast_precision_loss,
cast_possible_truncation, clippy::cast_sign_loss,
cast_possible_wrap, clippy::default_trait_access,
cast_precision_loss, clippy::empty_enum,
cast_sign_loss, clippy::enum_glob_use,
default_trait_access, clippy::expl_impl_clone_on_copy,
empty_enum, clippy::explicit_into_iter_loop,
enum_glob_use, clippy::filter_map,
expl_impl_clone_on_copy, clippy::if_not_else,
explicit_into_iter_loop, clippy::inline_always,
filter_map, clippy::invalid_upcast_comparisons,
if_not_else, clippy::items_after_statements,
inline_always, clippy::linkedlist,
invalid_upcast_comparisons, //TODO match_same_arms,
items_after_statements, clippy::maybe_infinite_iter,
linkedlist, clippy::mut_mut,
//TODO match_same_arms, clippy::needless_continue,
maybe_infinite_iter, clippy::option_map_unwrap_or,
mut_mut, //TODO option_map_unwrap_or_else,
needless_continue, clippy::pub_enum_variant_names,
option_map_unwrap_or, clippy::replace_consts,
//TODO option_map_unwrap_or_else, clippy::result_map_unwrap_or_else,
pub_enum_variant_names, //TODO single_match_else,
replace_consts, clippy::string_add_assign,
result_map_unwrap_or_else, clippy::unicode_not_nfc
//TODO single_match_else,
string_add_assign,
unicode_not_nfc
)
)] )]
extern crate byteorder; extern crate byteorder;

@ -1,15 +1,12 @@
//! Implementation of [N-Triples](https://www.w3.org/TR/n-triples/) RDF syntax //! Implementation of [N-Triples](https://www.w3.org/TR/n-triples/) RDF syntax
mod grammar { mod grammar {
#![cfg_attr( #![allow(
feature = "cargo-clippy", clippy::suspicious_else_formatting,
allow( clippy::len_zero,
suspicious_else_formatting, clippy::single_match,
len_zero, clippy::unit_arg,
single_match, clippy::naive_bytecount
unit_arg,
naive_bytecount
)
)] )]
use crate::rio::utils::unescape_characters; use crate::rio::utils::unescape_characters;

@ -1,15 +1,12 @@
//! Implementation of [Turtle](https://www.w3.org/TR/turtle/) RDF syntax //! Implementation of [Turtle](https://www.w3.org/TR/turtle/) RDF syntax
mod grammar { mod grammar {
#![cfg_attr( #![allow(
feature = "cargo-clippy", clippy::suspicious_else_formatting,
allow( clippy::len_zero,
suspicious_else_formatting, clippy::single_match,
len_zero, clippy::unit_arg,
single_match, clippy::naive_bytecount
unit_arg,
naive_bytecount
)
)] )]
use crate::model::*; use crate::model::*;

@ -1,16 +1,13 @@
mod grammar { mod grammar {
#![cfg_attr( #![allow(
feature = "cargo-clippy", clippy::suspicious_else_formatting,
allow( clippy::len_zero,
suspicious_else_formatting, clippy::single_match,
len_zero, clippy::unit_arg,
single_match, clippy::naive_bytecount,
unit_arg, clippy::cyclomatic_complexity,
naive_bytecount, clippy::many_single_char_names,
cyclomatic_complexity, clippy::type_complexity
many_single_char_names,
type_complexity
)
)] )]
use crate::model::*; use crate::model::*;

@ -1,4 +1,4 @@
#![cfg_attr(feature = "cargo-clippy", allow(zero_ptr, transmute_ptr_to_ptr))] #![allow(clippy::zero_ptr, clippy::transmute_ptr_to_ptr)]
#[macro_use] #[macro_use]
extern crate cpython; extern crate cpython;

Loading…
Cancel
Save