Skip to content

Commit

Permalink
update line z param type
Browse files Browse the repository at this point in the history
  • Loading branch information
KG32 committed Dec 11, 2024
1 parent 167077a commit 172a0be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charming/src/series/line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ impl Line {
self
}

pub fn z(mut self, z: i32) -> Self {
self.z = Some(z);
pub fn z<F: Into<i32>>(mut self, z: F) -> Self {
self.z = Some(z.into());
self
}

Expand Down

0 comments on commit 172a0be

Please sign in to comment.