Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Commit

Permalink
fix(lib): use new for<'a> syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Aparicio committed Nov 14, 2014
1 parent 1cddbbb commit 7f8c117
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/axis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Properties {
pub fn grid(
&mut self,
which: grid::Grid,
configure: <'a> |&'a mut grid::Properties| -> &'a mut grid::Properties,
configure: for<'a> |&'a mut grid::Properties| -> &'a mut grid::Properties,
) -> &mut Properties {
if self.grids.contains_key(&which) {
configure(self.grids.get_mut(&which).unwrap());
Expand Down
12 changes: 6 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ impl Figure {
pub fn axis(
&mut self,
which: axis::Axis,
configure: <'a> |&'a mut axis::Properties| -> &'a mut axis::Properties,
configure: for<'a> |&'a mut axis::Properties| -> &'a mut axis::Properties,
) -> &mut Figure {
if self.axes.contains_key(&which) {
configure(self.axes.get_mut(&which).unwrap());
Expand Down Expand Up @@ -327,7 +327,7 @@ impl Figure {
box_min: BM,
box_high: BH,
whisker_high: WH,
configure: <'a> |&'a mut candlestick::Properties| -> &'a mut candlestick::Properties,
configure: for<'a> |&'a mut candlestick::Properties| -> &'a mut candlestick::Properties,
) -> &mut Figure where
A: Data, B: Data, C: Data, D: Data, E: Data,
X: Iterator<A>, WM: Iterator<B>, BM: Iterator<C>, BH: Iterator<D>, WH: Iterator<E>,
Expand Down Expand Up @@ -389,7 +389,7 @@ impl Figure {
style: curve::Style,
x: X,
y: Y,
configure: <'a> |&'a mut curve::Properties| -> &'a mut curve::Properties,
configure: for<'a> |&'a mut curve::Properties| -> &'a mut curve::Properties,
) -> &mut Figure where
A: Data, B: Data, X: Iterator<A>, Y: Iterator<B>
{
Expand Down Expand Up @@ -484,7 +484,7 @@ impl Figure {
y: Y,
low: L,
high: H,
configure: <'a> |&'a mut errorbar::Properties| -> &'a mut errorbar::Properties,
configure: for<'a> |&'a mut errorbar::Properties| -> &'a mut errorbar::Properties,
) -> &mut Figure where
A: Data, B: Data, C: Data, D: Data,
X: Iterator<A>, Y: Iterator<B>, L: Iterator<C>, H: Iterator<D>,
Expand Down Expand Up @@ -559,7 +559,7 @@ impl Figure {
x: X,
y1: Y1,
y2: Y2,
configure: <'a> |&'a mut filledcurve::Properties| -> &'a mut filledcurve::Properties,
configure: for<'a> |&'a mut filledcurve::Properties| -> &'a mut filledcurve::Properties,
) -> &mut Figure where
A: Data, B: Data, C: Data, X: Iterator<A>, Y1: Iterator<B>, Y2: Iterator<C>
{
Expand Down Expand Up @@ -589,7 +589,7 @@ impl Figure {
/// Configures the key (legend)
pub fn key(
&mut self,
configure: <'a> |&'a mut key::Properties| -> &'a mut key::Properties,
configure: for<'a> |&'a mut key::Properties| -> &'a mut key::Properties,
) -> &mut Figure {
if self.key.is_some() {
configure(self.key.as_mut().unwrap());
Expand Down

0 comments on commit 7f8c117

Please sign in to comment.