@@ -285,12 +285,12 @@ impl<'a, 'b, DB: DrawingBackend> ChartBuilder<'a, 'b, DB> {
285285 #[ deprecated(
286286 note = "`build_ranged` has been renamed to `build_cartesian_2d` and is to be removed in the future."
287287 ) ]
288- pub fn build_ranged < X : AsRangedCoord , Y : AsRangedCoord > (
288+ pub fn build_ranged < ' c , X : AsRangedCoord , Y : AsRangedCoord > (
289289 & mut self ,
290290 x_spec : X ,
291291 y_spec : Y ,
292292 ) -> Result <
293- ChartContext < ' a , DB , Cartesian2d < X :: CoordDescType , Y :: CoordDescType > > ,
293+ ChartContext < ' c , DB , Cartesian2d < X :: CoordDescType , Y :: CoordDescType > > ,
294294 DrawingAreaErrorKind < DB :: ErrorType > ,
295295 > {
296296 self . build_cartesian_2d ( x_spec, y_spec)
@@ -306,12 +306,12 @@ impl<'a, 'b, DB: DrawingBackend> ChartBuilder<'a, 'b, DB> {
306306 See [`ChartBuilder::on()`] and [`ChartContext::configure_mesh()`] for more information and examples.
307307 */
308308 #[ allow( clippy:: type_complexity) ]
309- pub fn build_cartesian_2d < X : AsRangedCoord , Y : AsRangedCoord > (
309+ pub fn build_cartesian_2d < ' c , X : AsRangedCoord , Y : AsRangedCoord > (
310310 & mut self ,
311311 x_spec : X ,
312312 y_spec : Y ,
313313 ) -> Result <
314- ChartContext < ' a , DB , Cartesian2d < X :: CoordDescType , Y :: CoordDescType > > ,
314+ ChartContext < ' c , DB , Cartesian2d < X :: CoordDescType , Y :: CoordDescType > > ,
315315 DrawingAreaErrorKind < DB :: ErrorType > ,
316316 > {
317317 let mut label_areas = [ None , None , None , None ] ;
@@ -450,13 +450,13 @@ impl<'a, 'b, DB: DrawingBackend> ChartBuilder<'a, 'b, DB> {
450450 See [`ChartBuilder::on()`] and [`ChartContext::configure_axes()`] for more information and examples.
451451 */
452452 #[ allow( clippy:: type_complexity) ]
453- pub fn build_cartesian_3d < X : AsRangedCoord , Y : AsRangedCoord , Z : AsRangedCoord > (
453+ pub fn build_cartesian_3d < ' c , X : AsRangedCoord , Y : AsRangedCoord , Z : AsRangedCoord > (
454454 & mut self ,
455455 x_spec : X ,
456456 y_spec : Y ,
457457 z_spec : Z ,
458458 ) -> Result <
459- ChartContext < ' a , DB , Cartesian3d < X :: CoordDescType , Y :: CoordDescType , Z :: CoordDescType > > ,
459+ ChartContext < ' c , DB , Cartesian3d < X :: CoordDescType , Y :: CoordDescType , Z :: CoordDescType > > ,
460460 DrawingAreaErrorKind < DB :: ErrorType > ,
461461 > {
462462 let mut drawing_area = DrawingArea :: clone ( self . root_area ) ;
0 commit comments