File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ impl Blob {
114114 }
115115
116116 /// Opens a stream for reading a blob's content from disk.
117- pub fn open_content ( & self ) -> Result < BlobReader < ' _ > > {
117+ pub fn open_content ( & self ) -> Result < BlobReader > {
118118 check_ptr (
119119 |err| unsafe { CBLBlob_OpenContentStream ( self . get_ref ( ) , err) } ,
120120 |stream| BlobReader {
Original file line number Diff line number Diff line change @@ -249,10 +249,10 @@ impl Error {
249249
250250 /// Returns a message describing an error.
251251 pub fn message ( & self ) -> String {
252- if let ErrorCode :: CouchbaseLite ( e) = self . code
253- && e == CouchbaseLiteError :: UntranslatableError
254- {
255- return "Unknown error" . to_string ( ) ;
252+ if let ErrorCode :: CouchbaseLite ( e) = self . code {
253+ if e == CouchbaseLiteError :: UntranslatableError {
254+ return "Unknown error" . to_string ( ) ;
255+ }
256256 }
257257 unsafe {
258258 CBLError_Message ( & self . as_cbl_error ( ) )
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ impl MutableArray {
9696 unsafe { FLMutableArray_IsChanged ( self . get_ref ( ) ) }
9797 }
9898
99- pub fn at ( & mut self , index : u32 ) -> Option < Slot < ' _ > > {
99+ pub fn at ( & mut self , index : u32 ) -> Option < Slot > {
100100 if self . count ( ) > index {
101101 Some ( unsafe {
102102 Slot {
@@ -109,7 +109,7 @@ impl MutableArray {
109109 }
110110 }
111111
112- pub fn append ( & mut self ) -> Slot < ' _ > {
112+ pub fn append ( & mut self ) -> Slot {
113113 unsafe {
114114 Slot {
115115 cbl_ref : FLMutableArray_Append ( self . get_ref ( ) ) ,
You can’t perform that action at this time.
0 commit comments