Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LCMS2 Rust Wrapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Show more breadcrumbs
Eduardo Trujillo
LCMS2 Rust Wrapper
Commits
832dc9a4
Commit
832dc9a4
authored
4 years ago
by
Kornel Lesiński
Browse files
Options
Downloads
Patches
Plain Diff
Deprecated error
parent
20b25804
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Cargo.toml
+1
-1
1 addition, 1 deletion
Cargo.toml
src/error.rs
+5
-8
5 additions, 8 deletions
src/error.rs
with
6 additions
and
9 deletions
Cargo.toml
+
1
−
1
View file @
832dc9a4
...
...
@@ -10,7 +10,7 @@ homepage = "https://lib.rs/crates/lcms2"
documentation
=
"https://kornelski.github.io/rust-lcms2/lcms2/"
repository
=
"https://github.com/kornelski/rust-lcms2.git"
categories
=
[
"multimedia::images"
,
"api-bindings"
]
version
=
"5.1.
5
"
version
=
"5.1.
6
"
edition
=
"2018"
[dependencies]
...
...
This diff is collapsed.
Click to expand it.
src/error.rs
+
5
−
8
View file @
832dc9a4
...
...
@@ -24,16 +24,13 @@ pub type LCMSResult<T> = Result<T, Error>;
impl
fmt
::
Display
for
Error
{
fn
fmt
(
&
self
,
f
:
&
mut
fmt
::
Formatter
<
'_
>
)
->
fmt
::
Result
{
f
.write_str
(
self
.description
())
}
}
impl
StdError
for
Error
{
fn
description
(
&
self
)
->
&
str
{
match
*
self
{
f
.write_str
(
match
*
self
{
Error
::
ObjectCreationError
=>
"Could not create the object.
\n
The reason is not known, but it's usually caused by wrong input parameters."
,
Error
::
InvalidString
=>
"String is not valid. Contains unsupported characters or is too long."
,
Error
::
MissingData
=>
"Requested data is empty or does not exist."
,
}
}
)
}
}
impl
StdError
for
Error
{
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment