File tree Expand file tree Collapse file tree 2 files changed +11
-23
lines changed Expand file tree Collapse file tree 2 files changed +11
-23
lines changed Original file line number Diff line number Diff line change 11// use std::borrow::Cow;
2- //
2+ //
33// struct PreparedEncryptable<'a> {
44// type_name: Cow<'a, str>,
55// sort_key_prefix: Option<Cow<'a, str>>
66// }
7- //
7+ //
88// struct PreparedDecryptable<'a> {
99// }
10- //
10+ //
1111// struct DeleteSpec<'a> {
12- //
12+ //
1313// }
14- //
14+ //
1515// struct PutSpec<'a> {
16- //
16+ //
1717// }
18- //
18+ //
1919// struct PutSpec<'a> {
20- //
20+ //
2121// }
Original file line number Diff line number Diff line change @@ -7,22 +7,14 @@ pub trait PrimaryKey: private::Sealed {
77 type Pk ;
88 type Sk ;
99
10- fn into_parts (
11- self ,
12- type_name : & str ,
13- sort_key_prefix : Option < & str > ,
14- ) -> PrimaryKeyParts ;
10+ fn into_parts ( self , type_name : & str , sort_key_prefix : Option < & str > ) -> PrimaryKeyParts ;
1511}
1612
1713impl PrimaryKey for Pk {
1814 type Pk = String ;
1915 type Sk = ( ) ;
2016
21- fn into_parts (
22- self ,
23- type_name : & str ,
24- _sort_key_prefix : Option < & str > ,
25- ) -> PrimaryKeyParts {
17+ fn into_parts ( self , type_name : & str , _sort_key_prefix : Option < & str > ) -> PrimaryKeyParts {
2618 PrimaryKeyParts {
2719 pk : self . 0 ,
2820 sk : type_name. into ( ) ,
@@ -34,11 +26,7 @@ impl PrimaryKey for PkSk {
3426 type Pk = String ;
3527 type Sk = String ;
3628
37- fn into_parts (
38- self ,
39- _type_name : & str ,
40- sort_key_prefix : Option < & str > ,
41- ) -> PrimaryKeyParts {
29+ fn into_parts ( self , _type_name : & str , sort_key_prefix : Option < & str > ) -> PrimaryKeyParts {
4230 PrimaryKeyParts {
4331 pk : self . 0 ,
4432 sk : if let Some ( prefix) = sort_key_prefix {
You can’t perform that action at this time.
0 commit comments