File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ impl<E: Error + Send + Sync> Error for DrawingErrorKind<E> {}
105
105
/// will use the pixel-based approach to draw other types of low-level shapes.
106
106
pub trait DrawingBackend : Sized {
107
107
/// The error type reported by the backend
108
- type ErrorType : Error + Send + Sync ;
108
+ type ErrorType : Error + Send + Sync + ' static ;
109
109
110
110
/// Get the dimension of the drawing backend in pixels
111
111
fn get_size ( & self ) -> ( u32 , u32 ) ;
Original file line number Diff line number Diff line change @@ -151,10 +151,7 @@ impl DrawingBackend for TextDrawingBackend {
151
151
152
152
fn draw_chart < DB : DrawingBackend > (
153
153
b : DrawingArea < DB , plotters:: coord:: Shift > ,
154
- ) -> Result < ( ) , Box < dyn Error > >
155
- where
156
- DB :: ErrorType : ' static ,
157
- {
154
+ ) -> Result < ( ) , Box < dyn Error > > {
158
155
let mut chart = ChartBuilder :: on ( & b)
159
156
. margin ( 1 )
160
157
. caption ( "Sine and Cosine" , ( "sans-serif" , ( 10 ) . percent_height ( ) ) )
You can’t perform that action at this time.
0 commit comments