Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jgeluk committed Dec 4, 2024
1 parent 8d0dd32 commit b810a89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/source/owl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl OWLSource {
self.store = rdf_load(
std::mem::replace(&mut self.store, new_store),
&self.file_path,
&self.base_iri,
self.base_iri.to_string(),
self.graph.as_ref(),
)
.await?;
Expand Down
8 changes: 4 additions & 4 deletions src/util/rdf_load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ use {
url::Url,
};

pub async fn rdf_load<'a>(
pub async fn rdf_load(
mut store: Store,
file_path: &String,
base_iri: &String,
graph: GraphNameRef<'a>,
base_iri: String,
graph: GraphNameRef<'_>,
) -> anyhow::Result<Store> {
info!(
"{}",
style("Loading ontology from source...").green().bold()
);

if let Ok(url) = Url::parse(&file_path) {
if let Ok(url) = Url::parse(file_path) {
// Handle URL
let client = Client::new();
let response = client.get(url).send().await.map_err(|e| {
Expand Down

0 comments on commit b810a89

Please sign in to comment.