summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-09-13 01:46:53 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-09-13 02:42:27 -0400
commit43a20d43b09876082e54b550087f166aabdab82d (patch)
tree1c9518d45eed50b3db93a9f0df71c23f5b06f039 /src/error.rs
parent3193a30ebcf6bafdeaf463eda0e7e82082dfe4b5 (diff)
Suggested fixes from Clippy, via nursery and pedantic sets.
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs
index 2d512e6..b700eaa 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -23,10 +23,10 @@ impl<E> From<E> for InternalError
where
E: Into<BoxedError>,
{
- fn from(_: E) -> InternalError {
+ fn from(_: E) -> Self {
// At some point it may be useful for this to record the originating
// error so that it can be logged… -oj
- InternalError
+ Self
}
}