Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Ben Boeckel
rust-git-workarea
Commits
888162f7
Commit
888162f7
authored
Oct 09, 2019
by
Ben Boeckel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: add a comment about the non_exhaustive feature
parent
0a0fe4ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
src/git.rs
src/git.rs
+3
-0
src/prepare.rs
src/prepare.rs
+3
-0
No files found.
src/git.rs
View file @
888162f7
...
...
@@ -21,6 +21,9 @@ use prepare::{GitWorkArea, WorkAreaResult};
pub
struct
CommitId
(
String
);
/// Errors which may occur when working with workareas.
///
/// This enum is `non_exhaustive`, but cannot be marked as such until it is stable. In the
/// meantime, there is a hidden variant.
#[derive(Debug)]
// TODO: #[non_exhaustive]
pub
enum
GitError
{
...
...
src/prepare.rs
View file @
888162f7
...
...
@@ -42,6 +42,9 @@ pub enum SubmoduleIntent {
}
/// Errors which may occur when using a workarea.
///
/// This enum is `non_exhaustive`, but cannot be marked as such until it is stable. In the
/// meantime, there is a hidden variant.
#[derive(Debug)]
// TODO: #[non_exhaustive]
pub
enum
WorkAreaError
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment