Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into datatype-inline-with-…
Browse files Browse the repository at this point in the history
…rust
  • Loading branch information
oscartbeaumont committed Sep 3, 2023
2 parents 8806c3f + e1cee74 commit 6b8a3cc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/datatype/named.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ impl NamedDataTypeExt {
&self.impl_location
}

pub fn export(&self) -> &Option<bool> {
&self.export
pub fn export(&self) -> Option<bool> {
self.export
}
}

Expand Down Expand Up @@ -55,11 +55,11 @@ impl NamedDataType {
&self.comments
}

pub fn deprecated(&self) -> &Option<Cow<'static, str>> {
&self.deprecated
pub fn deprecated(&self) -> Option<&Cow<'static, str>> {
self.deprecated.as_ref()
}

pub fn ext(&self) -> &Option<NamedDataTypeExt> {
&self.ext
pub fn ext(&self) -> Option<&NamedDataTypeExt> {
self.ext.as_ref()
}
}

0 comments on commit 6b8a3cc

Please sign in to comment.