diff options
| author | Andre Bogus <bogusandre@gmail.com> | 2015-09-08 00:36:29 +0200 |
|---|---|---|
| committer | Andre Bogus <bogusandre@gmail.com> | 2015-09-08 00:36:29 +0200 |
| commit | 9cca96545faf2cfc972cc67b83deae2a78935c43 (patch) | |
| tree | ef675da82a1ce1b23173921957f6a6a167ad8db8 /src/libstd/rt | |
| parent | 7bf626a68045be1d1a4fac9a635113bb7775b6bb (diff) | |
| download | rust-9cca96545faf2cfc972cc67b83deae2a78935c43.tar.gz rust-9cca96545faf2cfc972cc67b83deae2a78935c43.zip | |
some more clippy-based improvements
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/at_exit_imp.rs | 4 | ||||
| -rw-r--r-- | src/libstd/rt/dwarf/eh.rs | 2 | ||||
| -rw-r--r-- | src/libstd/rt/mod.rs | 2 | ||||
| -rw-r--r-- | src/libstd/rt/util.rs | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/rt/at_exit_imp.rs b/src/libstd/rt/at_exit_imp.rs index 379c86eb2a0..7a1215bf382 100644 --- a/src/libstd/rt/at_exit_imp.rs +++ b/src/libstd/rt/at_exit_imp.rs @@ -42,7 +42,7 @@ unsafe fn init() -> bool { return false } - return true + true } pub fn cleanup() { @@ -78,5 +78,5 @@ pub fn push(f: Box<FnBox()>) -> bool { } LOCK.unlock(); } - return ret + ret } diff --git a/src/libstd/rt/dwarf/eh.rs b/src/libstd/rt/dwarf/eh.rs index 990501b28db..f4799703d99 100644 --- a/src/libstd/rt/dwarf/eh.rs +++ b/src/libstd/rt/dwarf/eh.rs @@ -104,7 +104,7 @@ pub unsafe fn find_landing_pad(lsda: *const u8, context: &EHContext) // IP range not found: gcc's C++ personality calls terminate() here, // however the rest of the languages treat this the same as cs_lpad == 0. // We follow this suit. - return None; + None } #[inline] diff --git a/src/libstd/rt/mod.rs b/src/libstd/rt/mod.rs index f2bf8757a51..95cba132201 100644 --- a/src/libstd/rt/mod.rs +++ b/src/libstd/rt/mod.rs @@ -73,7 +73,7 @@ fn lang_start(main: *const u8, argc: isize, argv: *const *const u8) -> isize { // created. Note that this isn't necessary in general for new threads, // but we just do this to name the main thread and to give it correct // info about the stack bounds. - let thread: Thread = NewThread::new(Some("<main>".to_string())); + let thread: Thread = NewThread::new(Some("<main>".to_owned())); thread_info::set(main_guard, thread); // By default, some platforms will send a *signal* when a EPIPE error diff --git a/src/libstd/rt/util.rs b/src/libstd/rt/util.rs index 0fe8d873a75..23a3c3e38c4 100644 --- a/src/libstd/rt/util.rs +++ b/src/libstd/rt/util.rs @@ -27,7 +27,7 @@ pub fn min_stack() -> usize { // 0 is our sentinel value, so ensure that we'll never see 0 after // initialization has run MIN.store(amt + 1, Ordering::SeqCst); - return amt; + amt } // Indicates whether we should perform expensive sanity checks, including rtassert! |
