diff --git a/api/src/sparql.rs b/api/src/sparql.rs index 54de2a49..3c1d6a08 100644 --- a/api/src/sparql.rs +++ b/api/src/sparql.rs @@ -85,7 +85,7 @@ where D: SparqlDataset + ?Sized, { /// Return the list of SELECTed variable names - fn variables(&self) -> Result, D::SparqlError>; + fn variables(&self) -> Vec<&str>; } /// A dummy module to check that implementing these traits is actually possible @@ -109,8 +109,8 @@ mod dummy { } } impl SparqlBindings for MyBindings { - fn variables(&self) -> Result, Infallible> { - Ok(vec!["s".to_string()]) + fn variables(&self) -> Vec<&str> { + vec!["s"] } }