makes newer Clippy happy

pull/830/head
Tpt 9 months ago committed by Thomas Tanon
parent 9b9cf9cbcb
commit 4705d75893
  1. 3
      cli/src/main.rs
  2. 3
      lib/oxigraph/src/sparql/eval.rs
  3. 3
      lib/oxigraph/src/sparql/model.rs
  4. 3
      lib/oxigraph/src/storage/binary_encoder.rs
  5. 3
      lib/oxigraph/src/store.rs
  6. 3
      lib/oxrdf/src/blank_node.rs
  7. 3
      lib/oxrdf/src/literal.rs
  8. 3
      lib/oxrdf/src/triple.rs
  9. 3
      lib/oxsdatatypes/src/boolean.rs
  10. 3
      lib/oxsdatatypes/src/date_time.rs
  11. 3
      lib/oxsdatatypes/src/decimal.rs
  12. 3
      lib/oxsdatatypes/src/double.rs
  13. 3
      lib/oxsdatatypes/src/duration.rs
  14. 3
      lib/oxsdatatypes/src/float.rs
  15. 3
      lib/oxsdatatypes/src/integer.rs
  16. 3
      lib/oxttl/src/trig.rs
  17. 3
      lib/oxttl/src/turtle.rs
  18. 3
      lib/sparesults/src/csv.rs

@ -1852,9 +1852,8 @@ fn systemd_notify_ready() -> io::Result<()> {
} }
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
use anyhow::Result; use anyhow::Result;
use assert_cmd::Command; use assert_cmd::Command;

@ -5852,9 +5852,8 @@ impl Timer {
} }
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
#[test] #[test]

@ -277,9 +277,8 @@ impl Iterator for QueryTripleIter {
} }
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
use std::io::Cursor; use std::io::Cursor;

@ -632,9 +632,8 @@ pub fn write_term(sink: &mut Vec<u8>, term: &EncodedTerm) {
} }
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
use crate::model::TermRef; use crate::model::TermRef;
use crate::storage::numeric_encoder::*; use crate::storage::numeric_encoder::*;

@ -1914,9 +1914,8 @@ impl BulkLoader {
} }
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
#[test] #[test]

@ -349,9 +349,8 @@ fn to_integer_id(id: &str) -> Option<u128> {
pub struct BlankNodeIdParseError; pub struct BlankNodeIdParseError;
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
#[test] #[test]

@ -632,9 +632,8 @@ pub fn print_quoted_str(string: &str, f: &mut impl Write) -> fmt::Result {
} }
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
#[test] #[test]

@ -1324,9 +1324,8 @@ impl TryFromTermError {
} }
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
#[test] #[test]

@ -84,9 +84,8 @@ impl fmt::Display for Boolean {
} }
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
#[test] #[test]

@ -2414,9 +2414,8 @@ pub struct InvalidTimezoneError {
} }
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
use std::error::Error; use std::error::Error;

@ -645,9 +645,8 @@ impl From<TooLargeForDecimalError> for ParseDecimalError {
pub struct TooLargeForDecimalError; pub struct TooLargeForDecimalError;
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
#[test] #[test]

@ -256,9 +256,8 @@ impl Div for Double {
} }
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
#[test] #[test]

@ -974,9 +974,8 @@ impl From<OppositeSignInDurationComponentsError> for ParseDurationError {
} }
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
use std::error::Error; use std::error::Error;

@ -246,9 +246,8 @@ impl Div for Float {
} }
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
#[test] #[test]

@ -268,9 +268,8 @@ impl TryFrom<Double> for Integer {
pub struct TooLargeForIntegerError; pub struct TooLargeForIntegerError;
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
#[test] #[test]

@ -1190,9 +1190,8 @@ fn can_be_escaped_in_local_name(c: char) -> bool {
} }
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
use oxrdf::BlankNodeRef; use oxrdf::BlankNodeRef;

@ -844,9 +844,8 @@ impl LowLevelTurtleWriter {
} }
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
use oxrdf::{BlankNodeRef, LiteralRef, NamedNodeRef}; use oxrdf::{BlankNodeRef, LiteralRef, NamedNodeRef};

@ -754,9 +754,8 @@ impl LineReader {
} }
#[cfg(test)] #[cfg(test)]
#[allow(clippy::panic_in_result_fn)]
mod tests { mod tests {
#![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
use std::error::Error; use std::error::Error;

Loading…
Cancel
Save