From b810a89d78600ee0327dea364d481b541c2b7dbf Mon Sep 17 00:00:00 2001 From: Jacobus Geluk Date: Wed, 4 Dec 2024 22:17:57 +0000 Subject: [PATCH] chore: fix lint issues --- src/source/owl.rs | 2 +- src/util/rdf_load.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/source/owl.rs b/src/source/owl.rs index 2089ade..3a7b957 100644 --- a/src/source/owl.rs +++ b/src/source/owl.rs @@ -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?; diff --git a/src/util/rdf_load.rs b/src/util/rdf_load.rs index d61a923..9f8e766 100644 --- a/src/util/rdf_load.rs +++ b/src/util/rdf_load.rs @@ -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 { 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| {