@@ -285,12 +285,12 @@ impl<'a, 'b, DB: DrawingBackend> ChartBuilder<'a, 'b, DB> {
285
285
#[ deprecated(
286
286
note = "`build_ranged` has been renamed to `build_cartesian_2d` and is to be removed in the future."
287
287
) ]
288
- pub fn build_ranged < X : AsRangedCoord , Y : AsRangedCoord > (
288
+ pub fn build_ranged < ' c , X : AsRangedCoord , Y : AsRangedCoord > (
289
289
& mut self ,
290
290
x_spec : X ,
291
291
y_spec : Y ,
292
292
) -> Result <
293
- ChartContext < ' a , DB , Cartesian2d < X :: CoordDescType , Y :: CoordDescType > > ,
293
+ ChartContext < ' c , DB , Cartesian2d < X :: CoordDescType , Y :: CoordDescType > > ,
294
294
DrawingAreaErrorKind < DB :: ErrorType > ,
295
295
> {
296
296
self . build_cartesian_2d ( x_spec, y_spec)
@@ -306,12 +306,12 @@ impl<'a, 'b, DB: DrawingBackend> ChartBuilder<'a, 'b, DB> {
306
306
See [`ChartBuilder::on()`] and [`ChartContext::configure_mesh()`] for more information and examples.
307
307
*/
308
308
#[ 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 > (
310
310
& mut self ,
311
311
x_spec : X ,
312
312
y_spec : Y ,
313
313
) -> Result <
314
- ChartContext < ' a , DB , Cartesian2d < X :: CoordDescType , Y :: CoordDescType > > ,
314
+ ChartContext < ' c , DB , Cartesian2d < X :: CoordDescType , Y :: CoordDescType > > ,
315
315
DrawingAreaErrorKind < DB :: ErrorType > ,
316
316
> {
317
317
let mut label_areas = [ None , None , None , None ] ;
@@ -450,13 +450,13 @@ impl<'a, 'b, DB: DrawingBackend> ChartBuilder<'a, 'b, DB> {
450
450
See [`ChartBuilder::on()`] and [`ChartContext::configure_axes()`] for more information and examples.
451
451
*/
452
452
#[ 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 > (
454
454
& mut self ,
455
455
x_spec : X ,
456
456
y_spec : Y ,
457
457
z_spec : Z ,
458
458
) -> Result <
459
- ChartContext < ' a , DB , Cartesian3d < X :: CoordDescType , Y :: CoordDescType , Z :: CoordDescType > > ,
459
+ ChartContext < ' c , DB , Cartesian3d < X :: CoordDescType , Y :: CoordDescType , Z :: CoordDescType > > ,
460
460
DrawingAreaErrorKind < DB :: ErrorType > ,
461
461
> {
462
462
let mut drawing_area = DrawingArea :: clone ( self . root_area ) ;
0 commit comments