From 4756217787b8cc857dc0185f3a822b5cb389a1e3 Mon Sep 17 00:00:00 2001 From: Tpt Date: Sat, 16 Dec 2023 21:20:29 +0100 Subject: [PATCH] Adds "since" to the #[deprecated] annotations --- lib/sparesults/src/parser.rs | 2 +- lib/sparesults/src/serializer.rs | 4 ++-- lib/src/io/format.rs | 4 ++-- lib/src/io/read.rs | 4 ++-- lib/src/io/write.rs | 4 ++-- lib/src/store.rs | 12 ++++++------ 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/sparesults/src/parser.rs b/lib/sparesults/src/parser.rs index f54f85d3..0a826e96 100644 --- a/lib/sparesults/src/parser.rs +++ b/lib/sparesults/src/parser.rs @@ -109,7 +109,7 @@ impl QueryResultsParser { }) } - #[deprecated(note = "Use parse_read")] + #[deprecated(note = "use parse_read", since = "0.4.0")] pub fn read_results( &self, reader: R, diff --git a/lib/sparesults/src/serializer.rs b/lib/sparesults/src/serializer.rs index dc0baeb9..f9879206 100644 --- a/lib/sparesults/src/serializer.rs +++ b/lib/sparesults/src/serializer.rs @@ -108,7 +108,7 @@ impl QueryResultsSerializer { } } - #[deprecated(note = "Use serialize_boolean_to_write")] + #[deprecated(note = "use serialize_boolean_to_write", since = "0.4.0")] pub fn write_boolean_result(&self, writer: W, value: bool) -> io::Result { self.serialize_boolean_to_write(writer, value) } @@ -203,7 +203,7 @@ impl QueryResultsSerializer { }) } - #[deprecated(note = "Use serialize_solutions_to_write")] + #[deprecated(note = "use serialize_solutions_to_write", since = "0.4.0")] pub fn solutions_writer( &self, writer: W, diff --git a/lib/src/io/format.rs b/lib/src/io/format.rs index e6ff7b3c..89ba37f9 100644 --- a/lib/src/io/format.rs +++ b/lib/src/io/format.rs @@ -7,7 +7,7 @@ use oxrdfio::{RdfFormat, RdfParser, RdfSerializer}; /// This enumeration is non exhaustive. New formats like JSON-LD will be added in the future. #[derive(Eq, PartialEq, Debug, Clone, Copy, Hash)] #[non_exhaustive] -#[deprecated(note = "Use RdfFormat instead")] +#[deprecated(note = "use RdfFormat instead", since = "0.4.0")] pub enum GraphFormat { /// [N-Triples](https://www.w3.org/TR/n-triples/) NTriples, @@ -137,7 +137,7 @@ impl From for RdfSerializer { /// This enumeration is non exhaustive. New formats like JSON-LD will be added in the future. #[derive(Eq, PartialEq, Debug, Clone, Copy, Hash)] #[non_exhaustive] -#[deprecated(note = "Use RdfFormat instead")] +#[deprecated(note = "use RdfFormat instead", since = "0.4.0")] pub enum DatasetFormat { /// [N-Quads](https://www.w3.org/TR/n-quads/) NQuads, diff --git a/lib/src/io/read.rs b/lib/src/io/read.rs index 6960112a..33065615 100644 --- a/lib/src/io/read.rs +++ b/lib/src/io/read.rs @@ -27,7 +27,7 @@ use std::io::Read; /// assert_eq!(triples[0].subject.to_string(), ""); /// # std::io::Result::Ok(()) /// ``` -#[deprecated(note = "Use RdfParser instead")] +#[deprecated(note = "use RdfParser instead", since = "0.4.0")] pub struct GraphParser { inner: RdfParser, } @@ -118,7 +118,7 @@ impl Iterator for TripleReader { /// assert_eq!(quads[0].subject.to_string(), ""); /// # std::io::Result::Ok(()) /// ``` -#[deprecated(note = "Use RdfParser instead")] +#[deprecated(note = "use RdfParser instead", since = "0.4.0")] pub struct DatasetParser { inner: RdfParser, } diff --git a/lib/src/io/write.rs b/lib/src/io/write.rs index df1cab61..3c787ebe 100644 --- a/lib/src/io/write.rs +++ b/lib/src/io/write.rs @@ -30,7 +30,7 @@ use std::io::{self, Write}; /// assert_eq!(buffer.as_slice(), " .\n".as_bytes()); /// # Result::<_,Box>::Ok(()) /// ``` -#[deprecated(note = "Use RdfSerializer instead")] +#[deprecated(note = "use RdfSerializer instead", since = "0.4.0")] pub struct GraphSerializer { inner: RdfSerializer, } @@ -113,7 +113,7 @@ impl TripleWriter { /// assert_eq!(buffer.as_slice(), " .\n".as_bytes()); /// # Result::<_,Box>::Ok(()) /// ``` -#[deprecated(note = "Use RdfSerializer instead")] +#[deprecated(note = "use RdfSerializer instead", since = "0.4.0")] pub struct DatasetSerializer { inner: RdfSerializer, } diff --git a/lib/src/store.rs b/lib/src/store.rs index 2b077b1f..988befed 100644 --- a/lib/src/store.rs +++ b/lib/src/store.rs @@ -517,7 +517,7 @@ impl Store { /// assert!(store.contains(QuadRef::new(ex, ex, ex, GraphNameRef::DefaultGraph))?); /// # Result::<_, Box>::Ok(()) /// ``` - #[deprecated(note = "Use Store.load_from_read instead")] + #[deprecated(note = "use Store.load_from_read instead", since = "0.4.0")] pub fn load_graph( &self, read: impl Read, @@ -560,7 +560,7 @@ impl Store { /// assert!(store.contains(QuadRef::new(ex, ex, ex, ex))?); /// # Result::<_, Box>::Ok(()) /// ``` - #[deprecated(note = "Use Store.load_from_read instead")] + #[deprecated(note = "use Store.load_from_read instead", since = "0.4.0")] pub fn load_dataset( &self, read: impl Read, @@ -1222,7 +1222,7 @@ impl<'a> Transaction<'a> { /// assert!(store.contains(QuadRef::new(ex, ex, ex, GraphNameRef::DefaultGraph))?); /// # Result::<_,oxigraph::store::LoaderError>::Ok(()) /// ``` - #[deprecated(note = "Use Transaction.load_from_read instead")] + #[deprecated(note = "use Transaction.load_from_read instead", since = "0.4.0")] pub fn load_graph( &mut self, read: impl Read, @@ -1265,7 +1265,7 @@ impl<'a> Transaction<'a> { /// assert!(store.contains(QuadRef::new(ex, ex, ex, ex))?); /// # Result::<_,oxigraph::store::LoaderError>::Ok(()) /// ``` - #[deprecated(note = "Use Transaction.load_from_read instead")] + #[deprecated(note = "use Transaction.load_from_read instead", since = "0.4.0")] pub fn load_dataset( &mut self, read: impl Read, @@ -1685,7 +1685,7 @@ impl BulkLoader { /// assert!(store.contains(QuadRef::new(ex, ex, ex, ex))?); /// # Result::<_, Box>::Ok(()) /// ``` - #[deprecated(note = "Use BulkLoader.load_from_read instead")] + #[deprecated(note = "use BulkLoader.load_from_read instead", since = "0.4.0")] pub fn load_dataset( &self, read: impl Read, @@ -1744,7 +1744,7 @@ impl BulkLoader { /// assert!(store.contains(QuadRef::new(ex, ex, ex, GraphNameRef::DefaultGraph))?); /// # Result::<_, Box>::Ok(()) /// ``` - #[deprecated(note = "Use BulkLoader.load_from_read instead")] + #[deprecated(note = "use BulkLoader.load_from_read instead", since = "0.4.0")] pub fn load_graph( &self, read: impl Read,