about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/debuginfo
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-03-29 10:45:09 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2021-03-29 10:45:09 +0200
commit5444b46234627289c6dded36413be3a5fa6afdbd (patch)
treecd40d2a6d1c21e0e000e04c1e21e1dcec6f1f931 /compiler/rustc_codegen_cranelift/src/debuginfo
parentcc4103089f40a163f6d143f06359cba7043da29b (diff)
parent0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1 (diff)
downloadrust-5444b46234627289c6dded36413be3a5fa6afdbd.tar.gz
rust-5444b46234627289c6dded36413be3a5fa6afdbd.zip
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/debuginfo')
-rw-r--r--compiler/rustc_codegen_cranelift/src/debuginfo/line_info.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/debuginfo/line_info.rs b/compiler/rustc_codegen_cranelift/src/debuginfo/line_info.rs
index 30ed356c762..8578ab33ced 100644
--- a/compiler/rustc_codegen_cranelift/src/debuginfo/line_info.rs
+++ b/compiler/rustc_codegen_cranelift/src/debuginfo/line_info.rs
@@ -39,11 +39,11 @@ fn osstr_as_utf8_bytes(path: &OsStr) -> &[u8] {
     #[cfg(unix)]
     {
         use std::os::unix::ffi::OsStrExt;
-        return path.as_bytes();
+        path.as_bytes()
     }
     #[cfg(not(unix))]
     {
-        return path.to_str().unwrap().as_bytes();
+        path.to_str().unwrap().as_bytes()
     }
 }