Skip to content

Commit 2738b3d

Browse files
committed
Revert unwanted diff
1 parent 3d8c1db commit 2738b3d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/blob.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

src/error.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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())

src/fleece_mutable.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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()),

0 commit comments

Comments
 (0)