Makes new Clippy happy

pull/812/head
Tpt 10 months ago committed by Thomas Tanon
parent 8e2548467c
commit 2b656df6ee
  1. 2
      .github/workflows/tests.yml
  2. 1
      cli/src/main.rs
  3. 1
      js/src/model.rs
  4. 1
      lib/oxigraph/src/io/read.rs
  5. 2
      lib/oxigraph/src/sparql/eval.rs
  6. 1
      lib/oxigraph/src/sparql/model.rs
  7. 2
      lib/oxigraph/src/storage/backend/rocksdb.rs
  8. 1
      lib/oxrdf/src/literal.rs
  9. 3
      lib/oxttl/src/trig.rs
  10. 1
      python/src/model.rs

@ -182,7 +182,7 @@ jobs:
with: with:
version: ${{ steps.metadata.outputs.rust-version }} version: ${{ steps.metadata.outputs.rust-version }}
- run: rustup toolchain install nightly - run: rustup toolchain install nightly
- run: rm Cargo.lock && cargo +nightly update -Z direct-minimal-versions && cargo update -p bumpalo@3.15.3 --precise 3.14.0 - run: rm Cargo.lock && cargo +nightly update -Z direct-minimal-versions && cargo update -p bumpalo --precise 3.14.0
- run: cargo test - run: cargo test
test_linux_latest: test_linux_latest:

@ -1856,7 +1856,6 @@ mod tests {
use assert_fs::{NamedTempFile, TempDir}; use assert_fs::{NamedTempFile, TempDir};
use flate2::write::GzEncoder; use flate2::write::GzEncoder;
use flate2::Compression; use flate2::Compression;
use oxhttp::model::Method;
use predicates::prelude::*; use predicates::prelude::*;
use std::fs::remove_dir_all; use std::fs::remove_dir_all;
use std::io::read_to_string; use std::io::read_to_string;

@ -4,7 +4,6 @@ use crate::format_err;
use crate::utils::to_err; use crate::utils::to_err;
use js_sys::{Reflect, UriError}; use js_sys::{Reflect, UriError};
use oxigraph::model::*; use oxigraph::model::*;
use oxigraph::sparql::Variable;
use wasm_bindgen::prelude::*; use wasm_bindgen::prelude::*;
thread_local! { thread_local! {

@ -4,7 +4,6 @@
use crate::io::{DatasetFormat, GraphFormat}; use crate::io::{DatasetFormat, GraphFormat};
use crate::model::*; use crate::model::*;
use oxiri::IriParseError;
use oxrdfio::{FromReadQuadReader, RdfParseError, RdfParser}; use oxrdfio::{FromReadQuadReader, RdfParseError, RdfParser};
use std::io::Read; use std::io::Read;

@ -33,7 +33,7 @@ use std::cmp::Ordering;
use std::collections::hash_map::DefaultHasher; use std::collections::hash_map::DefaultHasher;
use std::collections::{HashMap, HashSet}; use std::collections::{HashMap, HashSet};
use std::hash::{Hash, Hasher}; use std::hash::{Hash, Hasher};
use std::iter::{empty, once, Iterator}; use std::iter::{empty, once};
use std::rc::Rc; use std::rc::Rc;
use std::sync::Arc; use std::sync::Arc;
use std::{fmt, io, str}; use std::{fmt, io, str};

@ -5,7 +5,6 @@ use crate::sparql::results::{
FromReadQueryResultsReader, FromReadSolutionsReader, QueryResultsFormat, FromReadQueryResultsReader, FromReadSolutionsReader, QueryResultsFormat,
QueryResultsParseError, QueryResultsParser, QueryResultsSerializer, QueryResultsParseError, QueryResultsParser, QueryResultsSerializer,
}; };
use oxrdf::{Variable, VariableRef};
pub use sparesults::QuerySolution; pub use sparesults::QuerySolution;
use std::io::{Read, Write}; use std::io::{Read, Write};
use std::sync::Arc; use std::sync::Arc;

@ -9,7 +9,7 @@
)] )]
use crate::storage::error::{CorruptionError, StorageError}; use crate::storage::error::{CorruptionError, StorageError};
use libc::{self, c_void}; use libc::c_void;
use oxrocksdb_sys::*; use oxrocksdb_sys::*;
use rand::random; use rand::random;
use std::borrow::Borrow; use std::borrow::Borrow;

@ -6,7 +6,6 @@ use oxsdatatypes::*;
use std::borrow::Cow; use std::borrow::Cow;
use std::fmt; use std::fmt;
use std::fmt::Write; use std::fmt::Write;
use std::option::Option;
/// An owned RDF [literal](https://www.w3.org/TR/rdf11-concepts/#dfn-literal). /// An owned RDF [literal](https://www.w3.org/TR/rdf11-concepts/#dfn-literal).
/// ///

@ -1194,8 +1194,7 @@ mod tests {
#![allow(clippy::panic_in_result_fn)] #![allow(clippy::panic_in_result_fn)]
use super::*; use super::*;
use oxrdf::vocab::xsd; use oxrdf::BlankNodeRef;
use oxrdf::{BlankNodeRef, GraphNameRef, LiteralRef, NamedNodeRef};
#[test] #[test]
fn test_write() -> io::Result<()> { fn test_write() -> io::Result<()> {

@ -1,5 +1,4 @@
use oxigraph::model::*; use oxigraph::model::*;
use oxigraph::sparql::Variable;
use pyo3::basic::CompareOp; use pyo3::basic::CompareOp;
use pyo3::exceptions::{PyIndexError, PyNotImplementedError, PyTypeError, PyValueError}; use pyo3::exceptions::{PyIndexError, PyNotImplementedError, PyTypeError, PyValueError};
use pyo3::prelude::*; use pyo3::prelude::*;

Loading…
Cancel
Save