diff options
author | seancarroll <seanc28@gmail.com> | 2021-03-22 19:57:23 -0500 |
---|---|---|
committer | seancarroll <seanc28@gmail.com> | 2021-03-22 19:57:23 -0500 |
commit | 4d924969fdd445a3dc16938d8968c080cab2ff31 (patch) | |
tree | 9e9f0adfb05e77855a2048f7d0f853e1476d3178 /src/attributes | |
parent | d0490675e60adea4202cf61d96dd4b1e1d4abd3e (diff) | |
download | dotavious-4d924969fdd445a3dc16938d8968c080cab2ff31.zip |
some minor tweaks
Diffstat (limited to 'src/attributes')
-rw-r--r-- | src/attributes/color.rs | 2 | ||||
-rw-r--r-- | src/attributes/mod.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/attributes/color.rs b/src/attributes/color.rs index 92a26eb..029707c 100644 --- a/src/attributes/color.rs +++ b/src/attributes/color.rs @@ -91,7 +91,7 @@ impl<'a> DotString<'a> for ColorList<'a> { } } -/// Convert an element like `(i, j)` into a WeightedColor +/// Convert an element like `(Color, Option<f32>)` into a WeightedColor pub trait IntoWeightedColor<'a> { fn into_weighted_color(self) -> WeightedColor<'a>; } diff --git a/src/attributes/mod.rs b/src/attributes/mod.rs index 8f50c56..0cdfa99 100644 --- a/src/attributes/mod.rs +++ b/src/attributes/mod.rs @@ -1556,8 +1556,8 @@ pub trait EdgeAttributes<'a> { /// Style of arrowhead on the tail node of an edge. /// This will only appear if the dir attribute is back or both. - fn arrowtail(&mut self, arrowtail: ArrowType) -> &mut Self { - self.add_attribute("arrowtail", AttributeText::from(arrowtail)) + fn arrow_tail(&mut self, arrow_tail: ArrowType) -> &mut Self { + self.add_attribute("arrowtail", AttributeText::from(arrow_tail)) } /// Classnames to attach to the edge’s SVG element. |