@@ -328,7 +328,7 @@ impl core::fmt::Display for CursorIcon {
328
328
}
329
329
330
330
impl core:: str:: FromStr for CursorIcon {
331
- type Err = CursorIconParseError ;
331
+ type Err = ParseError ;
332
332
333
333
fn from_str ( name : & str ) -> Result < Self , Self :: Err > {
334
334
match name {
@@ -366,7 +366,7 @@ impl core::str::FromStr for CursorIcon {
366
366
"all-scroll" => Ok ( CursorIcon :: AllScroll ) ,
367
367
"zoom-in" => Ok ( CursorIcon :: ZoomIn ) ,
368
368
"zoom-out" => Ok ( CursorIcon :: ZoomOut ) ,
369
- _ => Err ( CursorIconParseError { _private : ( ) } ) ,
369
+ _ => Err ( ParseError { _private : ( ) } ) ,
370
370
}
371
371
}
372
372
}
@@ -377,15 +377,15 @@ impl core::str::FromStr for CursorIcon {
377
377
///
378
378
/// [`FromStr`]: core::str::FromStr
379
379
#[ derive( Debug , PartialEq , Eq ) ]
380
- pub struct CursorIconParseError {
380
+ pub struct ParseError {
381
381
_private : ( ) ,
382
382
}
383
383
384
- impl core:: fmt:: Display for CursorIconParseError {
384
+ impl core:: fmt:: Display for ParseError {
385
385
fn fmt ( & self , f : & mut core:: fmt:: Formatter < ' _ > ) -> core:: fmt:: Result {
386
386
f. write_str ( "failed to parse cursor icon" )
387
387
}
388
388
}
389
389
390
390
#[ cfg( feature = "std" ) ]
391
- impl std:: error:: Error for CursorIconParseError { }
391
+ impl std:: error:: Error for ParseError { }
0 commit comments