File tree Expand file tree Collapse file tree 5 files changed +21
-3
lines changed
Expand file tree Collapse file tree 5 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 22
33All changes in this project will be noted in this file.
44
5+ ## 0.7.4
6+
7+ - Additions:
8+ - FromSkyhashBytes impls for ` Vec<u8> ` and ` RawString `
9+ - Added ` RawString::into_inner ` so that the ` Vec<u8> ` can be obtained from the ` RawString `
10+ - Maintenance:
11+ - Upgraded deps
12+
513## 0.7.3
614
715Upgraded dependencies
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ license = "Apache-2.0"
99name = " skytable"
1010readme = " README.md"
1111repository = " https://github.com/skytable/client-rust"
12- version = " 0.7.3 "
12+ version = " 0.7.4 "
1313
1414# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1515
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ cargo new skyapp
3535First add this to your ` Cargo.toml ` file:
3636
3737``` toml
38- skytable = " 0.7.2 "
38+ skytable = " 0.7.4 "
3939```
4040
4141Now open up your ` src/main.rs ` file and establish a connection to the server while also adding some
Original file line number Diff line number Diff line change 3737//! First add this to your `Cargo.toml` file:
3838//!
3939//! ```toml
40- //! skytable = "0.7.2 "
40+ //! skytable = "0.7.4 "
4141//! ```
4242//!
4343//! Now open up your `src/main.rs` file and establish a connection to the server while also adding some
Original file line number Diff line number Diff line change @@ -356,6 +356,10 @@ impl RawString {
356356 pub fn new ( ) -> Self {
357357 Self ( Vec :: new ( ) )
358358 }
359+ /// Returns the [`Vec<u8>`] stored inside the [`RawString`]
360+ pub fn into_inner ( self ) -> Vec < u8 > {
361+ self . 0
362+ }
359363}
360364
361365impl Deref for RawString {
@@ -531,6 +535,12 @@ impl FromSkyhashBytes for Vec<u8> {
531535 }
532536}
533537
538+ impl FromSkyhashBytes for RawString {
539+ fn from_element ( element : Element ) -> SkyResult < Self > {
540+ <_ as FromSkyhashBytes >:: from_element ( element) . map ( RawString )
541+ }
542+ }
543+
534544impl FromSkyhashBytes for Vec < Vec < u8 > > {
535545 fn from_element ( e : Element ) -> SkyResult < Self > {
536546 let e = match e {
You can’t perform that action at this time.
0 commit comments