-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from StatisMike/crate_rename
crate rename to gd-props
- Loading branch information
Showing
30 changed files
with
314 additions
and
549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv=refresh content=0;url=godot_io/index.html /> | ||
<meta http-equiv=refresh content=0;url=gd_props/index.html /> | ||
</head> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
use core::fmt; | ||
|
||
use ron::error::SpannedError; | ||
|
||
#[derive(Debug, Clone)] | ||
pub enum GdPropError { | ||
OpenFileRead, | ||
OpenFileWrite, | ||
HeaderDeserialize(SpannedError), | ||
HeaderSerialize, | ||
} | ||
|
||
impl fmt::Display for GdPropError { | ||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | ||
match self { | ||
GdPropError::OpenFileRead => write!(f, "Can't open file for reading"), | ||
GdPropError::OpenFileWrite => write!(f, "Can't open file for writing"), | ||
GdPropError::HeaderDeserialize(spanned) => { | ||
write!(f, "Can't deserialize header: {}", spanned) | ||
} | ||
GdPropError::HeaderSerialize => write!(f, "Can't serialize header"), | ||
} | ||
} | ||
} |
Oops, something went wrong.