diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-03-27 11:14:38 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-03-27 11:14:38 +0200 |
commit | 939433798b708d986928a124e81dd03c8488ad90 (patch) | |
tree | b6f1fde5f227c4ddef21838fa3d8b6f56be88b43 /src/generation.rs | |
parent | 0483cfcc6f85711b7b75fc8f0182e4baf7c0019f (diff) | |
download | obnam2-939433798b708d986928a124e81dd03c8488ad90.tar.gz |
refactor: drop unnecessary conversions to the same type
Diffstat (limited to 'src/generation.rs')
-rw-r--r-- | src/generation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generation.rs b/src/generation.rs index 174247a..6eabb9b 100644 --- a/src/generation.rs +++ b/src/generation.rs @@ -344,7 +344,7 @@ mod sql { if iter.next() == None { Ok(Some((fileno, entry, reason))) } else { - Err(LocalGenerationError::TooManyFiles(filename.to_path_buf()).into()) + Err(LocalGenerationError::TooManyFiles(filename.to_path_buf())) } } } |