about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-03-05 22:04:05 +0100
committerGitHub <noreply@github.com>2020-03-05 22:04:05 +0100
commit22a743bc1c242b539cd70116068e62b1bd686a10 (patch)
tree50e7c4bc9bd8192437d49371a4dfc5530bbf00eb /src/libstd/sys/unix/stack_overflow.rs
parent189626672d4a8a838643ed612e568403aec27701 (diff)
parent80ed505c41319f2fbbc7e97189e62b38c47b5a70 (diff)
downloadrust-22a743bc1c242b539cd70116068e62b1bd686a10.tar.gz
rust-22a743bc1c242b539cd70116068e62b1bd686a10.zip
Rollup merge of #69713 - matthiaskrgr:more_cleanup, r=cramertj
more clippy cleanups

* Don't use .ok() before unwrapping via .expect() on a Result.
* Use .map() to modify data inside Options instead of using .and_then(|x| Some(y))
* Use .as_deref() instead of .as_ref().map(Deref::deref)
* Don't use "if let" bindings to only check a value and not actually bind anything.
* Use single-char patter on {ends,starts}_with and remove clone on copy type.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions