@@ -114,7 +114,7 @@ impl Display for TestBackend {
114
114
}
115
115
116
116
impl Backend for TestBackend {
117
- fn draw < ' a , I > ( & mut self , content : I ) -> Result < ( ) , io :: Error >
117
+ fn draw < ' a , I > ( & mut self , content : I ) -> io :: Result < ( ) >
118
118
where
119
119
I : Iterator < Item = ( u16 , u16 , & ' a Cell ) > ,
120
120
{
@@ -125,26 +125,26 @@ impl Backend for TestBackend {
125
125
Ok ( ( ) )
126
126
}
127
127
128
- fn hide_cursor ( & mut self ) -> Result < ( ) , io :: Error > {
128
+ fn hide_cursor ( & mut self ) -> io :: Result < ( ) > {
129
129
self . cursor = false ;
130
130
Ok ( ( ) )
131
131
}
132
132
133
- fn show_cursor ( & mut self ) -> Result < ( ) , io :: Error > {
133
+ fn show_cursor ( & mut self ) -> io :: Result < ( ) > {
134
134
self . cursor = true ;
135
135
Ok ( ( ) )
136
136
}
137
137
138
- fn get_cursor ( & mut self ) -> Result < ( u16 , u16 ) , io :: Error > {
138
+ fn get_cursor ( & mut self ) -> io :: Result < ( u16 , u16 ) > {
139
139
Ok ( self . pos )
140
140
}
141
141
142
- fn set_cursor ( & mut self , x : u16 , y : u16 ) -> Result < ( ) , io :: Error > {
142
+ fn set_cursor ( & mut self , x : u16 , y : u16 ) -> io :: Result < ( ) > {
143
143
self . pos = ( x, y) ;
144
144
Ok ( ( ) )
145
145
}
146
146
147
- fn clear ( & mut self ) -> Result < ( ) , io :: Error > {
147
+ fn clear ( & mut self ) -> io :: Result < ( ) > {
148
148
self . buffer . reset ( ) ;
149
149
Ok ( ( ) )
150
150
}
@@ -214,11 +214,11 @@ impl Backend for TestBackend {
214
214
Ok ( ( ) )
215
215
}
216
216
217
- fn size ( & self ) -> Result < Rect , io:: Error > {
217
+ fn size ( & self ) -> io:: Result < Rect > {
218
218
Ok ( Rect :: new ( 0 , 0 , self . width , self . height ) )
219
219
}
220
220
221
- fn window_size ( & mut self ) -> Result < WindowSize , io:: Error > {
221
+ fn window_size ( & mut self ) -> io:: Result < WindowSize > {
222
222
// Some arbitrary window pixel size, probably doesn't need much testing.
223
223
static WINDOW_PIXEL_SIZE : Size = Size {
224
224
width : 640 ,
@@ -230,7 +230,7 @@ impl Backend for TestBackend {
230
230
} )
231
231
}
232
232
233
- fn flush ( & mut self ) -> Result < ( ) , io :: Error > {
233
+ fn flush ( & mut self ) -> io :: Result < ( ) > {
234
234
Ok ( ( ) )
235
235
}
236
236
}
0 commit comments