Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Dunitrust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nodes
rust
Dunitrust
Merge requests
!107
Resolve "Apply block : allow blocks v11"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Apply block : allow blocks v11"
elois/115-apply-block-allow-blocks-v11
into
dev
Overview
1
Commits
26
Pipelines
0
Changes
3
Merged
Éloïs
requested to merge
elois/115-apply-block-allow-blocks-v11
into
dev
6 years ago
Overview
1
Commits
26
Pipelines
0
Changes
3
Expand
Closes
#115 (closed)
and
#114 (closed)
Edited
6 years ago
by
Éloïs
0
0
Merge request reports
Viewing commit
3b20048d
Show latest version
3 files
+
7
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
3b20048d
[feat] crypto: use failure for BaseConversionError
· 3b20048d
Éloïs
authored
6 years ago
lib/tools/crypto/src/keys/mod.rs
+
4
−
1
Options
@@ -74,12 +74,15 @@ pub trait GetKeysAlgo: Clone + Debug + PartialEq + Eq {
}
/// Errors enumeration for Base58/64 strings convertion.
#[derive(Clone,
Copy,
Debug,
PartialEq,
Eq)]
#[derive(Clone,
Copy,
Debug,
PartialEq,
Eq
,
Fail
)]
pub
enum
BaseConvertionError
{
#[fail(display
=
"Data have invalid key length."
)]
/// Data have invalid key length (found, expected).
InvalidKeyLendth
(
usize
,
usize
),
#[fail(display
=
"Invalid character."
)]
/// Base58 have an invalid character.
InvalidCharacter
(
char
,
usize
),
#[fail(display
=
"Invalid base converter length."
)]
/// Base58 have invalid lendth
InvalidBaseConverterLength
(),
}
Loading