about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/llvm
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2020-03-20 15:03:11 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2020-03-20 20:23:03 +0100
commitad00e9188766b8accdce93b264ed8b13aa12a820 (patch)
tree56c35b1bbe0b7372de57d7a0847674d1845a5ec7 /src/librustc_codegen_llvm/llvm
parent951a3661adf95b58a351b1ee10fe508e37dc17a6 (diff)
downloadrust-ad00e9188766b8accdce93b264ed8b13aa12a820.tar.gz
rust-ad00e9188766b8accdce93b264ed8b13aa12a820.zip
remove redundant returns (clippy::needless_return)
Diffstat (limited to 'src/librustc_codegen_llvm/llvm')
-rw-r--r--src/librustc_codegen_llvm/llvm/archive_ro.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_llvm/llvm/archive_ro.rs b/src/librustc_codegen_llvm/llvm/archive_ro.rs
index ab9df416247..64db4f7462d 100644
--- a/src/librustc_codegen_llvm/llvm/archive_ro.rs
+++ b/src/librustc_codegen_llvm/llvm/archive_ro.rs
@@ -27,13 +27,13 @@ impl ArchiveRO {
     /// If this archive is used with a mutable method, then an error will be
     /// raised.
     pub fn open(dst: &Path) -> Result<ArchiveRO, String> {
-        return unsafe {
+        unsafe {
             let s = path_to_c_string(dst);
             let ar = super::LLVMRustOpenArchive(s.as_ptr()).ok_or_else(|| {
                 super::last_error().unwrap_or_else(|| "failed to open archive".to_owned())
             })?;
             Ok(ArchiveRO { raw: ar })
-        };
+        }
     }
 
     pub fn iter(&self) -> Iter<'_> {