Skip to content

Commit

Permalink
feat: return CollectionType instead of a reference
Browse files Browse the repository at this point in the history
BREAKING CHANGE: return CollectionType instead of reference
for Collection::collection_type()
  • Loading branch information
fMeow committed Jul 26, 2020
1 parent 222445e commit b46c832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/collection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ impl<'a, C: ClientExt> Collection<C> {
)
}

pub fn collection_type(&self) -> &CollectionType {
&self.collection_type
pub fn collection_type(&self) -> CollectionType {
self.collection_type
}

/// The collection identifier
Expand Down

0 comments on commit b46c832

Please sign in to comment.