Skip to content

Commit

Permalink
Rename functions as suggested in the code review
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Haug <[email protected]>
  • Loading branch information
awehrfritz and reknih authored Feb 14, 2024
1 parent 8231dd4 commit 407d36b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renditions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ writer!(Rendition: |obj| {

impl<'a> Rendition<'a> {
/// Write the `/S` attribute to set the rendition type.
pub fn rendition_type(&mut self, kind: RenditionType) -> &mut Self {
pub fn subtype(&mut self, kind: RenditionType) -> &mut Self {
self.pair(Name(b"S"), kind.to_name());
self
}
Expand Down Expand Up @@ -51,7 +51,7 @@ writer!(MediaClip: |obj| {

impl<'a> MediaClip<'a> {
/// Write the `/S` attribute to set the media clip type.
pub fn media_clip_type(&mut self, kind: MediaClipType) -> &mut Self {
pub fn subtype(&mut self, kind: MediaClipType) -> &mut Self {
self.pair(Name(b"S"), kind.to_name());
self
}
Expand Down

0 comments on commit 407d36b

Please sign in to comment.