Skip to content

Commit

Permalink
style: improve formating, release 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradHoeffner committed Apr 12, 2024
1 parent c6cf254 commit 7c3a375
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hdt"
version = "0.1.8"
version = "0.2.0"
repository = "https://github.com/konradhoeffner/hdt"
authors = ["Tim Baccaert <tbaccaer@vub.be>", "Konrad Höffner"]
license = "MIT"
Expand Down
1 change: 0 additions & 1 deletion src/containers/sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use crate::containers::vbyte::read_vbyte;
use bytesize::ByteSize;
use eyre::{eyre, Result};
use std::fmt;

use std::io::BufRead;
use std::mem::size_of;
use std::thread;
Expand Down
2 changes: 0 additions & 2 deletions src/dict_sect_pfc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use eyre::{eyre, Result};
use log::error;
use std::cmp::{min, Ordering};
use std::fmt;

use std::io::BufRead;
use std::str;
use std::sync::Arc;
Expand Down Expand Up @@ -37,7 +36,6 @@ impl fmt::Debug for DictSectPFC {
}
}

///
#[derive(Error, Debug)]
pub enum ExtractError {
#[error("index out of bounds: id {id} > dictionary section len {len}")]
Expand Down
2 changes: 0 additions & 2 deletions src/hdt_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ use crate::four_sect_dict::IdKind;
use crate::hdt::Hdt;
use crate::triples::{Id, ObjectIter, PredicateIter, PredicateObjectIter, SubjectIter, TripleId};
use log::debug;

use sophia::api::graph::{GTripleSource, Graph};

use sophia::api::term::{matcher::TermMatcher, BnodeId, IriRef, LanguageTag, Term};
use std::convert::Infallible;
use std::io::{self, Error, ErrorKind};
Expand Down
4 changes: 2 additions & 2 deletions src/hdt_graph/term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl Term for HdtTerm {
match self {
HdtTerm::Iri(_) => TermKind::Iri,
HdtTerm::BlankNode(_) => TermKind::BlankNode,
HdtTerm::LiteralDatatype(_, _) | HdtTerm::LiteralLanguage(_, _) => TermKind::Literal,
HdtTerm::LiteralDatatype(..) | HdtTerm::LiteralLanguage(..) => TermKind::Literal,
}
}

Expand Down Expand Up @@ -84,7 +84,7 @@ impl Term for HdtTerm {
fn datatype(&self) -> Option<sophia::api::term::IriRef<mownstr::MownStr>> {
match self {
HdtTerm::LiteralDatatype(_, datatype) => Some(datatype.as_ref().map_unchecked(MownStr::from_str)),
HdtTerm::LiteralLanguage(_, _) => rdf::langString.iri(),
HdtTerm::LiteralLanguage(..) => rdf::langString.iri(),
_ => None,
}
}
Expand Down
1 change: 0 additions & 1 deletion src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use crate::containers::ControlInfo;
use eyre::{eyre, Result, WrapErr};
use ntriple::parser::triple_line;
use std::collections::BTreeSet;

use std::io::BufRead;
use std::str;

Expand Down

0 comments on commit 7c3a375

Please sign in to comment.