You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by zf...@apache.org on 2025/07/20 04:00:46 UTC
(incubator-teaclave-sgx-sdk) branch main updated: license: fix and pass skywalking-eyes check
This is an automated email from the ASF dual-hosted git repository.
zfc pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-sgx-sdk.git
The following commit(s) were added to refs/heads/main by this push:
new 2a4a8ef0 license: fix and pass skywalking-eyes check
2a4a8ef0 is described below
commit 2a4a8ef0e2f9ede766df7fe07c6efd58934a4350
Author: Zhaofeng Chen <zf...@apache.org>
AuthorDate: Sun Jul 20 04:00:19 2025 +0000
license: fix and pass skywalking-eyes check
---
.bazelversion | 1 -
.github/workflows/license-check.yml | 33 +++
.licenserc.yaml | 56 +++++
DISCLAIMER | 8 +
LICENSE | 29 +++
buildenv.mk | 2 +-
common/inc/sgx_dcap_key_exchange.h | 2 +-
common/inc/sgx_dcap_tkey_exchange.h | 2 +-
licenses/LICENSE-common-inc.txt | 2 +-
licenses/LICENSE-hashbrown.txt | 229 +++++++++++++++++++++
licenses/LICENSE-intel-sgx.txt | 29 +++
rustlib/profiler_builtins/src/lib.rs | 2 +-
samplecode/backtrace/app/build.rs | 2 +-
samplecode/backtrace/app/src/main.rs | 2 +-
samplecode/backtrace/enclave/src/lib.rs | 2 +-
samplecode/cov/app/build.rs | 2 +-
samplecode/cov/app/src/main.rs | 2 +-
samplecode/cov/enclave/src/lib.rs | 2 +-
samplecode/crypto/app/build.rs | 2 +-
samplecode/crypto/app/src/main.rs | 2 +-
samplecode/crypto/enclave/src/lib.rs | 2 +-
samplecode/helloworld/app/build.rs | 2 +-
samplecode/helloworld/app/src/main.rs | 2 +-
samplecode/helloworld/enclave/src/lib.rs | 2 +-
samplecode/httpreq/app/build.rs | 2 +-
samplecode/httpreq/app/src/main.rs | 2 +-
samplecode/httpreq/enclave/src/lib.rs | 2 +-
samplecode/hyper-rustls-https-server/app/build.rs | 2 +-
.../hyper-rustls-https-server/app/src/main.rs | 2 +-
.../hyper-rustls-https-server/enclave/src/lib.rs | 2 +-
samplecode/logger/app/build.rs | 2 +-
samplecode/logger/app/src/main.rs | 2 +-
samplecode/logger/enclave/src/lib.rs | 2 +-
samplecode/mutual-ra/app/build.rs | 2 +-
samplecode/mutual-ra/app/src/main.rs | 2 +-
samplecode/mutual-ra/enclave/src/cert.rs | 17 ++
samplecode/mutual-ra/enclave/src/hex.rs | 17 ++
samplecode/mutual-ra/enclave/src/lib.rs | 2 +-
samplecode/regex/app/build.rs | 2 +-
samplecode/regex/app/src/main.rs | 2 +-
samplecode/regex/enclave/src/lib.rs | 2 +-
samplecode/rpc/client/app/build.rs | 2 +-
samplecode/rpc/client/app/src/main.rs | 2 +-
samplecode/rpc/client/enclave/build.rs | 2 +-
samplecode/rpc/client/enclave/src/lib.rs | 2 +-
samplecode/rpc/proto/helloworld.proto | 2 +-
samplecode/rpc/server/app/build.rs | 2 +-
samplecode/rpc/server/app/src/main.rs | 2 +-
samplecode/rpc/server/enclave/build.rs | 2 +-
samplecode/rpc/server/enclave/src/lib.rs | 2 +-
samplecode/seal/app/build.rs | 2 +-
samplecode/seal/app/src/main.rs | 2 +-
samplecode/seal/enclave/src/lib.rs | 2 +-
samplecode/switchless/app/build.rs | 2 +-
samplecode/switchless/app/src/main.rs | 2 +-
samplecode/switchless/enclave/src/lib.rs | 2 +-
samplecode/template/app/build.rs | 2 +-
samplecode/template/app/src/main.rs | 2 +-
samplecode/template/enclave/src/lib.rs | 2 +-
samplecode/zlib-lazy-static-sample/app/build.rs | 2 +-
samplecode/zlib-lazy-static-sample/app/src/main.rs | 2 +-
.../zlib-lazy-static-sample/enclave/src/lib.rs | 2 +-
sgx_alloc/src/alignalloc.rs | 2 +-
sgx_alloc/src/alignbox.rs | 2 +-
sgx_alloc/src/capi.rs | 2 +-
sgx_alloc/src/lib.rs | 2 +-
sgx_alloc/src/system.rs | 2 +-
sgx_backtrace/sgx_backtrace_sys/build.rs | 2 +-
sgx_backtrace/sgx_backtrace_sys/src/lib.rs | 2 +-
sgx_backtrace/src/backtrace/libunwind.rs | 2 +-
sgx_backtrace/src/backtrace/mod.rs | 2 +-
sgx_backtrace/src/capture.rs | 2 +-
sgx_backtrace/src/lib.rs | 2 +-
sgx_backtrace/src/print.rs | 2 +-
sgx_backtrace/src/symbolize/libbacktrace.rs | 2 +-
sgx_backtrace/src/symbolize/mod.rs | 2 +-
sgx_backtrace/src/types.rs | 2 +-
sgx_build_helper/build_helper/src/lib.rs | 2 +-
sgx_build_helper/download_prebuilt/build.rs | 2 +-
sgx_build_helper/download_prebuilt/src/lib.rs | 2 +-
sgx_crypto/sgx_crypto_sys/build.rs | 2 +-
sgx_crypto/sgx_crypto_sys/src/lib.rs | 2 +-
sgx_crypto/src/aes/cbc.rs | 2 +-
sgx_crypto/src/aes/ccm.rs | 2 +-
sgx_crypto/src/aes/ctr.rs | 2 +-
sgx_crypto/src/aes/gcm.rs | 2 +-
sgx_crypto/src/aes/mod.rs | 2 +-
sgx_crypto/src/ecc/mod.rs | 2 +-
sgx_crypto/src/lib.rs | 2 +-
sgx_crypto/src/mac/cmac.rs | 2 +-
sgx_crypto/src/mac/hmac.rs | 2 +-
sgx_crypto/src/mac/mod.rs | 2 +-
sgx_crypto/src/rsa/mod.rs | 2 +-
sgx_crypto/src/rsa/rsa2048.rs | 2 +-
sgx_crypto/src/rsa/rsa3072.rs | 2 +-
sgx_crypto/src/sha/mod.rs | 2 +-
sgx_crypto/src/sha/sha1.rs | 2 +-
sgx_crypto/src/sha/sha256.rs | 2 +-
sgx_crypto/src/sha/sha384.rs | 2 +-
sgx_crypto/src/sm/mod.rs | 2 +-
sgx_crypto/src/sm/sm2/mod.rs | 2 +-
sgx_crypto/src/sm/sm3/mod.rs | 2 +-
sgx_crypto/src/sm/sm4/cbc.rs | 2 +-
sgx_crypto/src/sm/sm4/ccm.rs | 2 +-
sgx_crypto/src/sm/sm4/ctr.rs | 2 +-
sgx_crypto/src/sm/sm4/mod.rs | 2 +-
sgx_dcap/message/src/lib.rs | 2 +-
sgx_dcap/message/src/message.rs | 2 +-
sgx_dcap/tkey_exchange/src/capi/initiator.rs | 2 +-
sgx_dcap/tkey_exchange/src/capi/mod.rs | 2 +-
sgx_dcap/tkey_exchange/src/capi/responder.rs | 2 +-
sgx_dcap/tkey_exchange/src/ecall/initiator.rs | 2 +-
sgx_dcap/tkey_exchange/src/ecall/mod.rs | 2 +-
sgx_dcap/tkey_exchange/src/ecall/responder.rs | 2 +-
sgx_dcap/tkey_exchange/src/lib.rs | 2 +-
sgx_dcap/tkey_exchange/src/session/initiator.rs | 2 +-
sgx_dcap/tkey_exchange/src/session/manager.rs | 2 +-
sgx_dcap/tkey_exchange/src/session/mod.rs | 2 +-
sgx_dcap/tkey_exchange/src/session/responder.rs | 2 +-
sgx_dcap/tvl/src/capi.rs | 2 +-
sgx_dcap/tvl/src/lib.rs | 2 +-
sgx_dcap/tvl/src/tvl.rs | 2 +-
sgx_demangle/src/legacy.rs | 2 +-
sgx_demangle/src/lib.rs | 2 +-
sgx_demangle/src/v0.rs | 2 +-
sgx_edl/edl/inc/addrinfo.h | 2 +-
sgx_edl/edl/inc/dirent.h | 2 +-
sgx_edl/edl/inc/stat.h | 2 +-
sgx_edl/src/lib.rs | 2 +-
sgx_ffi/src/ascii.rs | 2 +-
sgx_ffi/src/c_str.rs | 2 +-
sgx_ffi/src/lib.rs | 2 +-
sgx_ffi/src/memchr.rs | 2 +-
sgx_ffi/src/memchr/tests.rs | 2 +-
sgx_key_exchange/message/src/lib.rs | 2 +-
sgx_key_exchange/message/src/message.rs | 2 +-
sgx_key_exchange/tkey_exchange/src/capi.rs | 2 +-
sgx_key_exchange/tkey_exchange/src/lib.rs | 2 +-
.../tkey_exchange/src/session/ecall.rs | 2 +-
.../tkey_exchange/src/session/initiator.rs | 2 +-
.../tkey_exchange/src/session/manager.rs | 2 +-
sgx_key_exchange/tkey_exchange/src/session/mod.rs | 2 +-
sgx_key_exchange/ukey_exchange/build.rs | 2 +-
sgx_key_exchange/ukey_exchange/src/capi.rs | 2 +-
sgx_key_exchange/ukey_exchange/src/lib.rs | 2 +-
sgx_key_exchange/ukey_exchange/src/session.rs | 2 +-
sgx_libc/sgx_tlibc_sys/build.rs | 2 +-
sgx_libc/sgx_tlibc_sys/src/lib.rs | 2 +-
sgx_libc/src/android/aarch64/mod.rs | 2 +-
sgx_libc/src/android/mod.rs | 2 +-
sgx_libc/src/lib.rs | 2 +-
sgx_libc/src/linux/edl/mod.rs | 2 +-
sgx_libc/src/linux/mod.rs | 2 +-
sgx_libc/src/linux/ocall/asyncio.rs | 2 +-
sgx_libc/src/linux/ocall/env.rs | 2 +-
sgx_libc/src/linux/ocall/fd.rs | 2 +-
sgx_libc/src/linux/ocall/file.rs | 2 +-
sgx_libc/src/linux/ocall/mem.rs | 2 +-
sgx_libc/src/linux/ocall/mod.rs | 2 +-
sgx_libc/src/linux/ocall/net.rs | 2 +-
sgx_libc/src/linux/ocall/pipe.rs | 2 +-
sgx_libc/src/linux/ocall/process.rs | 2 +-
sgx_libc/src/linux/ocall/socket.rs | 2 +-
sgx_libc/src/linux/ocall/sync.rs | 2 +-
sgx_libc/src/linux/ocall/sys.rs | 2 +-
sgx_libc/src/linux/ocall/syscall.rs | 2 +-
sgx_libc/src/linux/ocall/thread.rs | 2 +-
sgx_libc/src/linux/ocall/time.rs | 2 +-
sgx_libc/src/linux/pthread/mod.rs | 2 +-
sgx_libc/src/linux/x86_64/mod.rs | 2 +-
sgx_libc/src/macros.rs | 2 +-
sgx_macros/src/lib.rs | 2 +-
sgx_no_tstd/src/lib.rs | 2 +-
sgx_oc/src/android/aarch64/mod.rs | 2 +-
sgx_oc/src/android/mod.rs | 2 +-
sgx_oc/src/lib.rs | 2 +-
sgx_oc/src/linux/edl/asyncio.rs | 2 +-
sgx_oc/src/linux/edl/cpuid.rs | 2 +-
sgx_oc/src/linux/edl/env.rs | 2 +-
sgx_oc/src/linux/edl/fd.rs | 2 +-
sgx_oc/src/linux/edl/file.rs | 2 +-
sgx_oc/src/linux/edl/mem.rs | 2 +-
sgx_oc/src/linux/edl/mod.rs | 2 +-
sgx_oc/src/linux/edl/msbuf.rs | 2 +-
sgx_oc/src/linux/edl/net.rs | 2 +-
sgx_oc/src/linux/edl/pipe.rs | 2 +-
sgx_oc/src/linux/edl/process.rs | 2 +-
sgx_oc/src/linux/edl/socket.rs | 2 +-
sgx_oc/src/linux/edl/sys.rs | 2 +-
sgx_oc/src/linux/edl/thread.rs | 2 +-
sgx_oc/src/linux/edl/time.rs | 2 +-
sgx_oc/src/linux/mod.rs | 2 +-
sgx_oc/src/linux/ocall/asyncio.rs | 2 +-
sgx_oc/src/linux/ocall/cpuid.rs | 2 +-
sgx_oc/src/linux/ocall/env.rs | 2 +-
sgx_oc/src/linux/ocall/fd.rs | 2 +-
sgx_oc/src/linux/ocall/file.rs | 2 +-
sgx_oc/src/linux/ocall/hostbuf.rs | 2 +-
sgx_oc/src/linux/ocall/mem.rs | 2 +-
sgx_oc/src/linux/ocall/mod.rs | 2 +-
sgx_oc/src/linux/ocall/msbuf.rs | 2 +-
sgx_oc/src/linux/ocall/net.rs | 2 +-
sgx_oc/src/linux/ocall/pipe.rs | 2 +-
sgx_oc/src/linux/ocall/process.rs | 2 +-
sgx_oc/src/linux/ocall/socket.rs | 2 +-
sgx_oc/src/linux/ocall/socket_msg.rs | 2 +-
sgx_oc/src/linux/ocall/sys.rs | 2 +-
sgx_oc/src/linux/ocall/thread.rs | 2 +-
sgx_oc/src/linux/ocall/time.rs | 2 +-
sgx_oc/src/linux/x86_64/mod.rs | 2 +-
sgx_oc/src/macros.rs | 2 +-
sgx_protected_fs/tfs/src/capi.rs | 2 +-
sgx_protected_fs/tfs/src/fs.rs | 2 +-
sgx_protected_fs/tfs/src/lib.rs | 2 +-
sgx_protected_fs/tfs/src/sys/cache/list.rs | 2 +-
sgx_protected_fs/tfs/src/sys/cache/mod.rs | 2 +-
sgx_protected_fs/tfs/src/sys/error.rs | 2 +-
sgx_protected_fs/tfs/src/sys/file/close.rs | 2 +-
sgx_protected_fs/tfs/src/sys/file/flush.rs | 2 +-
sgx_protected_fs/tfs/src/sys/file/mod.rs | 2 +-
sgx_protected_fs/tfs/src/sys/file/node.rs | 2 +-
sgx_protected_fs/tfs/src/sys/file/open.rs | 2 +-
sgx_protected_fs/tfs/src/sys/file/other.rs | 2 +-
sgx_protected_fs/tfs/src/sys/file/read.rs | 2 +-
sgx_protected_fs/tfs/src/sys/file/write.rs | 2 +-
sgx_protected_fs/tfs/src/sys/host/mod.rs | 2 +-
sgx_protected_fs/tfs/src/sys/host/ocall.rs | 2 +-
sgx_protected_fs/tfs/src/sys/host/ufs.rs | 2 +-
sgx_protected_fs/tfs/src/sys/keys.rs | 2 +-
sgx_protected_fs/tfs/src/sys/metadata.rs | 2 +-
sgx_protected_fs/tfs/src/sys/mod.rs | 2 +-
sgx_protected_fs/tfs/src/sys/node.rs | 2 +-
sgx_protected_fs/ufs/src/lib.rs | 2 +-
sgx_rand/derive/src/lib.rs | 2 +-
sgx_rand/src/chacha.rs | 2 +-
sgx_rand/src/distributions/exponential.rs | 2 +-
sgx_rand/src/distributions/gamma.rs | 2 +-
sgx_rand/src/distributions/mod.rs | 2 +-
sgx_rand/src/distributions/range.rs | 2 +-
sgx_rand/src/distributions/ziggurat_tables.rs | 2 +-
sgx_rand/src/isaac.rs | 2 +-
sgx_rand/src/lib.rs | 2 +-
sgx_rand/src/os.rs | 2 +-
sgx_rand/src/rand_impls.rs | 2 +-
sgx_rand/src/read.rs | 2 +-
sgx_rand/src/reseeding.rs | 2 +-
sgx_rsrvmm/src/alloc.rs | 2 +-
sgx_rsrvmm/src/capi.rs | 2 +-
sgx_rsrvmm/src/lib.rs | 2 +-
sgx_rsrvmm/src/map.rs | 2 +-
sgx_rsrvmm/src/rsrvmm/area.rs | 2 +-
sgx_rsrvmm/src/rsrvmm/manager.rs | 2 +-
sgx_rsrvmm/src/rsrvmm/mod.rs | 2 +-
sgx_rsrvmm/src/rsrvmm/range.rs | 2 +-
sgx_serialize/derive/src/bound.rs | 2 +-
sgx_serialize/derive/src/decode.rs | 2 +-
sgx_serialize/derive/src/encode.rs | 2 +-
sgx_serialize/derive/src/fragment.rs | 2 +-
sgx_serialize/derive/src/internals/ast.rs | 2 +-
sgx_serialize/derive/src/internals/ctxt.rs | 2 +-
sgx_serialize/derive/src/internals/mod.rs | 2 +-
sgx_serialize/derive/src/lib.rs | 2 +-
sgx_serialize/derive/src/param.rs | 2 +-
sgx_serialize/src/collection.rs | 2 +-
sgx_serialize/src/json.rs | 2 +-
sgx_serialize/src/leb128.rs | 2 +-
sgx_serialize/src/lib.rs | 2 +-
sgx_serialize/src/opaque.rs | 2 +-
sgx_serialize/src/serialize.rs | 2 +-
sgx_serialize/src/types.rs | 2 +-
sgx_sync/src/barrier.rs | 2 +-
sgx_sync/src/capi.rs | 2 +-
sgx_sync/src/condvar.rs | 2 +-
sgx_sync/src/condvar/check.rs | 2 +-
sgx_sync/src/futex.rs | 2 +-
sgx_sync/src/lazy_lock.rs | 2 +-
sgx_sync/src/lib.rs | 2 +-
sgx_sync/src/lock_api.rs | 2 +-
sgx_sync/src/mutex.rs | 2 +-
sgx_sync/src/once.rs | 2 +-
sgx_sync/src/once_lock.rs | 2 +-
sgx_sync/src/remutex/generic.rs | 2 +-
sgx_sync/src/remutex/legacy.rs | 2 +-
sgx_sync/src/remutex/mod.rs | 2 +-
sgx_sync/src/rwlock.rs | 2 +-
sgx_sync/src/spin.rs | 2 +-
sgx_sync/src/sys/futex.rs | 2 +-
sgx_sync/src/sys/lazy_box.rs | 2 +-
sgx_sync/src/sys/locks/futex/condvar.rs | 2 +-
sgx_sync/src/sys/locks/futex/mod.rs | 2 +-
sgx_sync/src/sys/locks/futex/mutex.rs | 2 +-
sgx_sync/src/sys/locks/futex/rwlock.rs | 2 +-
sgx_sync/src/sys/locks/futex/wait.rs | 2 +-
sgx_sync/src/sys/locks/generic/condvar.rs | 2 +-
sgx_sync/src/sys/locks/generic/mod.rs | 2 +-
sgx_sync/src/sys/locks/generic/mutex.rs | 2 +-
sgx_sync/src/sys/locks/generic/rwlock.rs | 2 +-
sgx_sync/src/sys/locks/mod.rs | 2 +-
sgx_sync/src/sys/mod.rs | 2 +-
sgx_sync/src/sys/ocall/mod.rs | 2 +-
sgx_tdh/src/capi.rs | 2 +-
sgx_tdh/src/lib.rs | 2 +-
sgx_tdh/src/message.rs | 2 +-
sgx_tdh/src/session/initiator.rs | 2 +-
sgx_tdh/src/session/mod.rs | 2 +-
sgx_tdh/src/session/responder.rs | 2 +-
sgx_tests/cov/src/lib.rs | 2 +-
sgx_tests/unit/src/lib.rs | 2 +-
sgx_tests/utils/src/bench.rs | 2 +-
sgx_tests/utils/src/lib.rs | 2 +-
sgx_tests/utils/src/stats.rs | 2 +-
sgx_tests/utils/src/time.rs | 2 +-
sgx_trts/build.rs | 2 +-
sgx_trts/src/arch.rs | 2 +-
sgx_trts/src/asm/cet.S | 2 +-
sgx_trts/src/asm/macro.S | 2 +-
sgx_trts/src/asm/metadata.S | 2 +-
sgx_trts/src/asm/mod.rs | 2 +-
sgx_trts/src/asm/pic.S | 2 +-
sgx_trts/src/asm/thunk.S | 2 +-
sgx_trts/src/asm/xsave.S | 2 +-
sgx_trts/src/call/ecall.rs | 2 +-
sgx_trts/src/call/mod.rs | 2 +-
sgx_trts/src/call/msbuf.rs | 2 +-
sgx_trts/src/call/ocall.rs | 2 +-
sgx_trts/src/call/ocalloc.rs | 2 +-
sgx_trts/src/capi.rs | 2 +-
sgx_trts/src/edmm/epc.rs | 2 +-
sgx_trts/src/edmm/layout.rs | 2 +-
sgx_trts/src/edmm/mem.rs | 2 +-
sgx_trts/src/edmm/mod.rs | 2 +-
sgx_trts/src/edmm/perm.rs | 2 +-
sgx_trts/src/edmm/tcs.rs | 2 +-
sgx_trts/src/edmm/trim.rs | 2 +-
sgx_trts/src/elf/control_flow.rs | 2 +-
sgx_trts/src/elf/dynamic.rs | 2 +-
sgx_trts/src/elf/header.rs | 2 +-
sgx_trts/src/elf/mod.rs | 2 +-
sgx_trts/src/elf/program.rs | 2 +-
sgx_trts/src/elf/sections.rs | 2 +-
sgx_trts/src/elf/slice.rs | 2 +-
sgx_trts/src/elf/symtabl.rs | 2 +-
sgx_trts/src/elf/zero.rs | 2 +-
sgx_trts/src/enclave/atexit.rs | 2 +-
sgx_trts/src/enclave/entry.rs | 2 +-
sgx_trts/src/enclave/init.rs | 2 +-
sgx_trts/src/enclave/mem.rs | 2 +-
sgx_trts/src/enclave/mod.rs | 2 +-
sgx_trts/src/enclave/parse.rs | 2 +-
sgx_trts/src/enclave/state.rs | 2 +-
sgx_trts/src/enclave/uninit.rs | 2 +-
sgx_trts/src/error.rs | 2 +-
sgx_trts/src/feature/mod.rs | 2 +-
sgx_trts/src/feature/sys.rs | 2 +-
sgx_trts/src/fence.rs | 2 +-
sgx_trts/src/inst/hw/enclu.S | 2 +-
sgx_trts/src/inst/hw/everifyreport.S | 2 +-
sgx_trts/src/inst/hw/inst.rs | 2 +-
sgx_trts/src/inst/hw/mod.rs | 2 +-
sgx_trts/src/inst/hw/td.S | 2 +-
sgx_trts/src/inst/hw/xsave_mask.S | 2 +-
sgx_trts/src/inst/hyper/enclu.S | 2 +-
sgx_trts/src/inst/hyper/inst.rs | 2 +-
sgx_trts/src/inst/hyper/mod.rs | 2 +-
sgx_trts/src/inst/hyper/td.S | 2 +-
sgx_trts/src/inst/hyper/xsave_mask.S | 2 +-
sgx_trts/src/inst/mod.rs | 2 +-
sgx_trts/src/inst/sim/derive.rs | 2 +-
sgx_trts/src/inst/sim/enclu.S | 2 +-
sgx_trts/src/inst/sim/inst.rs | 2 +-
sgx_trts/src/inst/sim/lowlib.S | 2 +-
sgx_trts/src/inst/sim/mod.rs | 2 +-
sgx_trts/src/inst/sim/td.S | 2 +-
sgx_trts/src/inst/sim/tls/gnu.rs | 2 +-
sgx_trts/src/inst/sim/tls/mod.rs | 2 +-
sgx_trts/src/inst/sim/xsave_mask.S | 2 +-
sgx_trts/src/lib.rs | 2 +-
sgx_trts/src/macros.rs | 2 +-
sgx_trts/src/pkru.rs | 2 +-
sgx_trts/src/rand.rs | 2 +-
sgx_trts/src/se/key.rs | 2 +-
sgx_trts/src/se/mod.rs | 2 +-
sgx_trts/src/se/report.rs | 2 +-
sgx_trts/src/stackchk.rs | 2 +-
sgx_trts/src/sync/lazy.rs | 2 +-
sgx_trts/src/sync/lock_api.rs | 2 +-
sgx_trts/src/sync/mod.rs | 2 +-
sgx_trts/src/sync/mutex.rs | 2 +-
sgx_trts/src/sync/once.rs | 2 +-
sgx_trts/src/sync/remutex.rs | 2 +-
sgx_trts/src/sync/rwlock.rs | 2 +-
sgx_trts/src/tcs/list.rs | 2 +-
sgx_trts/src/tcs/mod.rs | 2 +-
sgx_trts/src/tcs/tc.rs | 2 +-
sgx_trts/src/tcs/tls.rs | 2 +-
sgx_trts/src/thread/info.rs | 2 +-
sgx_trts/src/thread/mod.rs | 2 +-
sgx_trts/src/thread/native.rs | 2 +-
sgx_trts/src/thread/task.rs | 2 +-
sgx_trts/src/thread/tls/bitset.rs | 2 +-
sgx_trts/src/thread/tls/mod.rs | 2 +-
sgx_trts/src/trts.rs | 2 +-
sgx_trts/src/veh/exception.rs | 2 +-
sgx_trts/src/veh/list.rs | 4 +-
sgx_trts/src/veh/mod.rs | 2 +-
sgx_trts/src/veh/register.rs | 2 +-
sgx_trts/src/version.rs | 2 +-
sgx_trts/src/xsave.rs | 2 +-
sgx_tse/src/capi.rs | 2 +-
sgx_tse/src/lib.rs | 2 +-
sgx_tse/src/se.rs | 2 +-
sgx_tseal/src/aad.rs | 2 +-
sgx_tseal/src/capi.rs | 2 +-
sgx_tseal/src/internal.rs | 2 +-
sgx_tseal/src/lib.rs | 2 +-
sgx_tseal/src/seal.rs | 2 +-
sgx_tstd/src/alloc.rs | 2 +-
sgx_tstd/src/ascii.rs | 2 +-
sgx_tstd/src/backtrace.rs | 2 +-
sgx_tstd/src/backtrace/tests.rs | 2 +-
sgx_tstd/src/collections/hash/benches/map.rs | 2 +-
sgx_tstd/src/collections/hash/benches/mod.rs | 2 +-
sgx_tstd/src/collections/hash/benches/set_ops.rs | 2 +-
sgx_tstd/src/collections/hash/map.rs | 2 +-
sgx_tstd/src/collections/hash/map/tests.rs | 2 +-
sgx_tstd/src/collections/hash/mod.rs | 2 +-
sgx_tstd/src/collections/hash/set.rs | 2 +-
sgx_tstd/src/collections/hash/set/tests.rs | 2 +-
sgx_tstd/src/collections/mod.rs | 2 +-
sgx_tstd/src/enclave.rs | 2 +-
sgx_tstd/src/env.rs | 2 +-
sgx_tstd/src/env/tests.rs | 2 +-
sgx_tstd/src/error.rs | 2 +-
sgx_tstd/src/error/tests.rs | 2 +-
sgx_tstd/src/f32.rs | 2 +-
sgx_tstd/src/f32/tests.rs | 2 +-
sgx_tstd/src/f64.rs | 2 +-
sgx_tstd/src/f64/tests.rs | 2 +-
sgx_tstd/src/ffi/mod.rs | 2 +-
sgx_tstd/src/ffi/os_str.rs | 2 +-
sgx_tstd/src/ffi/os_str/tests.rs | 2 +-
sgx_tstd/src/fs.rs | 2 +-
sgx_tstd/src/fs/tests.rs | 2 +-
sgx_tstd/src/hash/mod.rs | 2 +-
sgx_tstd/src/hash/random.rs | 2 +-
sgx_tstd/src/io/buffered/bufreader.rs | 2 +-
sgx_tstd/src/io/buffered/bufreader/buffer.rs | 2 +-
sgx_tstd/src/io/buffered/bufwriter.rs | 2 +-
sgx_tstd/src/io/buffered/linewriter.rs | 2 +-
sgx_tstd/src/io/buffered/linewritershim.rs | 2 +-
sgx_tstd/src/io/buffered/mod.rs | 2 +-
sgx_tstd/src/io/buffered/tests.rs | 2 +-
sgx_tstd/src/io/copy.rs | 2 +-
sgx_tstd/src/io/copy/tests.rs | 2 +-
sgx_tstd/src/io/cursor.rs | 2 +-
sgx_tstd/src/io/cursor/tests.rs | 2 +-
sgx_tstd/src/io/error.rs | 2 +-
sgx_tstd/src/io/error/repr_bitpacked.rs | 2 +-
sgx_tstd/src/io/error/repr_unpacked.rs | 2 +-
sgx_tstd/src/io/error/tests.rs | 2 +-
sgx_tstd/src/io/impls.rs | 2 +-
sgx_tstd/src/io/impls/tests.rs | 2 +-
sgx_tstd/src/io/mod.rs | 2 +-
sgx_tstd/src/io/prelude.rs | 2 +-
sgx_tstd/src/io/stdio.rs | 2 +-
sgx_tstd/src/io/stdio/tests.rs | 2 +-
sgx_tstd/src/io/tests.rs | 2 +-
sgx_tstd/src/io/util.rs | 2 +-
sgx_tstd/src/io/util/tests.rs | 2 +-
sgx_tstd/src/lib.rs | 2 +-
sgx_tstd/src/macros.rs | 2 +-
sgx_tstd/src/net/ip_addr.rs | 2 +-
sgx_tstd/src/net/ip_addr/tests.rs | 2 +-
sgx_tstd/src/net/mod.rs | 2 +-
sgx_tstd/src/net/socket_addr.rs | 2 +-
sgx_tstd/src/net/socket_addr/tests.rs | 2 +-
sgx_tstd/src/net/tcp.rs | 2 +-
sgx_tstd/src/net/tcp/tests.rs | 2 +-
sgx_tstd/src/net/test.rs | 2 +-
sgx_tstd/src/net/udp.rs | 2 +-
sgx_tstd/src/net/udp/tests.rs | 2 +-
sgx_tstd/src/num.rs | 2 +-
sgx_tstd/src/num/benches.rs | 2 +-
sgx_tstd/src/num/tests.rs | 2 +-
sgx_tstd/src/os/fd/mod.rs | 2 +-
sgx_tstd/src/os/fd/net.rs | 2 +-
sgx_tstd/src/os/fd/owned.rs | 2 +-
sgx_tstd/src/os/fd/raw.rs | 2 +-
sgx_tstd/src/os/fd/tests.rs | 2 +-
sgx_tstd/src/os/linux/fs.rs | 2 +-
sgx_tstd/src/os/linux/mod.rs | 2 +-
sgx_tstd/src/os/linux/net.rs | 2 +-
sgx_tstd/src/os/linux/process.rs | 2 +-
sgx_tstd/src/os/linux/raw.rs | 2 +-
sgx_tstd/src/os/mod.rs | 2 +-
sgx_tstd/src/os/net/linux_ext/addr.rs | 2 +-
sgx_tstd/src/os/net/linux_ext/mod.rs | 2 +-
sgx_tstd/src/os/net/linux_ext/tcp.rs | 2 +-
sgx_tstd/src/os/net/linux_ext/tests.rs | 2 +-
sgx_tstd/src/os/net/mod.rs | 2 +-
sgx_tstd/src/os/raw/mod.rs | 2 +-
sgx_tstd/src/os/raw/tests.rs | 2 +-
sgx_tstd/src/os/unix/ffi/mod.rs | 2 +-
sgx_tstd/src/os/unix/ffi/os_str.rs | 2 +-
sgx_tstd/src/os/unix/fs.rs | 2 +-
sgx_tstd/src/os/unix/fs/tests.rs | 2 +-
sgx_tstd/src/os/unix/io/mod.rs | 2 +-
sgx_tstd/src/os/unix/io/tests.rs | 2 +-
sgx_tstd/src/os/unix/mod.rs | 2 +-
sgx_tstd/src/os/unix/net/addr.rs | 2 +-
sgx_tstd/src/os/unix/net/ancillary.rs | 2 +-
sgx_tstd/src/os/unix/net/datagram.rs | 2 +-
sgx_tstd/src/os/unix/net/listener.rs | 2 +-
sgx_tstd/src/os/unix/net/mod.rs | 2 +-
sgx_tstd/src/os/unix/net/stream.rs | 2 +-
sgx_tstd/src/os/unix/net/tests.rs | 2 +-
sgx_tstd/src/os/unix/process.rs | 2 +-
sgx_tstd/src/os/unix/raw.rs | 2 +-
sgx_tstd/src/os/unix/thread.rs | 2 +-
sgx_tstd/src/os/unix/ucred.rs | 2 +-
sgx_tstd/src/os/unix/ucred/tests.rs | 2 +-
sgx_tstd/src/panic.rs | 2 +-
sgx_tstd/src/panic/tests.rs | 2 +-
sgx_tstd/src/panicking.rs | 2 +-
sgx_tstd/src/path.rs | 2 +-
sgx_tstd/src/path/tests.rs | 2 +-
sgx_tstd/src/prelude/mod.rs | 2 +-
sgx_tstd/src/prelude/v1.rs | 2 +-
sgx_tstd/src/process.rs | 2 +-
sgx_tstd/src/rt.rs | 2 +-
sgx_tstd/src/sync/barrier.rs | 2 +-
sgx_tstd/src/sync/barrier/tests.rs | 2 +-
sgx_tstd/src/sync/condvar.rs | 2 +-
sgx_tstd/src/sync/condvar/tests.rs | 2 +-
sgx_tstd/src/sync/lazy_lock.rs | 2 +-
sgx_tstd/src/sync/lazy_lock/tests.rs | 2 +-
sgx_tstd/src/sync/mod.rs | 2 +-
sgx_tstd/src/sync/mpmc/array.rs | 2 +-
sgx_tstd/src/sync/mpmc/context.rs | 2 +-
sgx_tstd/src/sync/mpmc/counter.rs | 2 +-
sgx_tstd/src/sync/mpmc/error.rs | 2 +-
sgx_tstd/src/sync/mpmc/list.rs | 2 +-
sgx_tstd/src/sync/mpmc/mod.rs | 2 +-
sgx_tstd/src/sync/mpmc/select.rs | 2 +-
sgx_tstd/src/sync/mpmc/utils.rs | 2 +-
sgx_tstd/src/sync/mpmc/waker.rs | 2 +-
sgx_tstd/src/sync/mpmc/zero.rs | 2 +-
sgx_tstd/src/sync/mpsc/mod.rs | 2 +-
sgx_tstd/src/sync/mpsc/sync_tests.rs | 2 +-
sgx_tstd/src/sync/mpsc/tests.rs | 2 +-
sgx_tstd/src/sync/mutex.rs | 2 +-
sgx_tstd/src/sync/mutex/tests.rs | 2 +-
sgx_tstd/src/sync/once.rs | 2 +-
sgx_tstd/src/sync/once/tests.rs | 2 +-
sgx_tstd/src/sync/once_lock.rs | 2 +-
sgx_tstd/src/sync/once_lock/tests.rs | 2 +-
sgx_tstd/src/sync/poison.rs | 2 +-
sgx_tstd/src/sync/remutex.rs | 2 +-
sgx_tstd/src/sync/remutex/tests.rs | 2 +-
sgx_tstd/src/sync/rwlock.rs | 2 +-
sgx_tstd/src/sync/rwlock/tests.rs | 2 +-
sgx_tstd/src/sys/args.rs | 2 +-
sgx_tstd/src/sys/backtrace/mod.rs | 2 +-
sgx_tstd/src/sys/backtrace/printing/mod.rs | 2 +-
sgx_tstd/src/sys/backtrace/tracing/gcc_s.rs | 2 +-
sgx_tstd/src/sys/backtrace/tracing/mod.rs | 2 +-
sgx_tstd/src/sys/cmath.rs | 2 +-
sgx_tstd/src/sys/common/mod.rs | 2 +-
sgx_tstd/src/sys/common/small_c_string.rs | 2 +-
sgx_tstd/src/sys/common/tests.rs | 2 +-
sgx_tstd/src/sys/common/thread_local/fast_local.rs | 2 +-
sgx_tstd/src/sys/common/thread_local/mod.rs | 2 +-
sgx_tstd/src/sys/common/thread_local/os_local.rs | 2 +-
.../src/sys/common/thread_local/static_local.rs | 2 +-
sgx_tstd/src/sys/env.rs | 2 +-
sgx_tstd/src/sys/fd.rs | 2 +-
sgx_tstd/src/sys/fd/tests.rs | 2 +-
sgx_tstd/src/sys/fs.rs | 2 +-
sgx_tstd/src/sys/futex.rs | 2 +-
sgx_tstd/src/sys/io.rs | 2 +-
sgx_tstd/src/sys/kernel_copy.rs | 2 +-
sgx_tstd/src/sys/kernel_copy/tests.rs | 2 +-
sgx_tstd/src/sys/memchr.rs | 2 +-
sgx_tstd/src/sys/mod.rs | 2 +-
sgx_tstd/src/sys/net.rs | 2 +-
sgx_tstd/src/sys/os.rs | 2 +-
sgx_tstd/src/sys/os_str.rs | 2 +-
sgx_tstd/src/sys/os_str/tests.rs | 2 +-
sgx_tstd/src/sys/path.rs | 2 +-
sgx_tstd/src/sys/personality/dwarf/eh.rs | 2 +-
sgx_tstd/src/sys/personality/dwarf/mod.rs | 2 +-
sgx_tstd/src/sys/personality/dwarf/tests.rs | 2 +-
sgx_tstd/src/sys/personality/gcc.rs | 2 +-
sgx_tstd/src/sys/personality/mod.rs | 18 +-
sgx_tstd/src/sys/pipe.rs | 2 +-
sgx_tstd/src/sys/process.rs | 2 +-
sgx_tstd/src/sys/rand.rs | 2 +-
sgx_tstd/src/sys/stdio.rs | 2 +-
sgx_tstd/src/sys/thread.rs | 2 +-
sgx_tstd/src/sys/thread_local_dtor.rs | 2 +-
sgx_tstd/src/sys/thread_local_key.rs | 2 +-
sgx_tstd/src/sys/time.rs | 2 +-
sgx_tstd/src/sys/unsupported/common.rs | 17 ++
sgx_tstd/src/sys/unsupported/mod.rs | 2 +-
sgx_tstd/src/sys/unsupported/pipe.rs | 2 +-
sgx_tstd/src/sys/unsupported/process.rs | 2 +-
sgx_tstd/src/sys_common/at_exit_imp.rs | 2 +-
sgx_tstd/src/sys_common/backtrace.rs | 2 +-
sgx_tstd/src/sys_common/condvar.rs | 2 +-
sgx_tstd/src/sys_common/fs.rs | 2 +-
sgx_tstd/src/sys_common/gnu/libbacktrace.rs | 2 +-
sgx_tstd/src/sys_common/gnu/mod.rs | 2 +-
sgx_tstd/src/sys_common/io.rs | 2 +-
sgx_tstd/src/sys_common/lazy_box.rs | 2 +-
sgx_tstd/src/sys_common/memchr.rs | 2 +-
sgx_tstd/src/sys_common/mod.rs | 2 +-
sgx_tstd/src/sys_common/mutex.rs | 2 +-
sgx_tstd/src/sys_common/net.rs | 2 +-
sgx_tstd/src/sys_common/net/tests.rs | 2 +-
sgx_tstd/src/sys_common/once/futex.rs | 2 +-
sgx_tstd/src/sys_common/once/mod.rs | 2 +-
sgx_tstd/src/sys_common/once/queue.rs | 2 +-
sgx_tstd/src/sys_common/process.rs | 2 +-
sgx_tstd/src/sys_common/remutex.rs | 2 +-
sgx_tstd/src/sys_common/rwlock.rs | 2 +-
sgx_tstd/src/sys_common/tests.rs | 2 +-
sgx_tstd/src/sys_common/thread.rs | 2 +-
sgx_tstd/src/sys_common/thread_info.rs | 2 +-
sgx_tstd/src/sys_common/thread_local_dtor.rs | 2 +-
sgx_tstd/src/sys_common/thread_local_key.rs | 2 +-
sgx_tstd/src/sys_common/thread_local_key/tests.rs | 2 +-
sgx_tstd/src/sys_common/thread_parking/futex.rs | 2 +-
sgx_tstd/src/sys_common/thread_parking/generic.rs | 2 +-
sgx_tstd/src/sys_common/thread_parking/mod.rs | 2 +-
sgx_tstd/src/sys_common/wstr.rs | 2 +-
sgx_tstd/src/sys_common/wtf8.rs | 2 +-
sgx_tstd/src/sys_common/wtf8/tests.rs | 2 +-
sgx_tstd/src/thread/local.rs | 2 +-
sgx_tstd/src/thread/local/dynamic_tests.rs | 2 +-
sgx_tstd/src/thread/local/tests.rs | 2 +-
sgx_tstd/src/thread/mod.rs | 2 +-
sgx_tstd/src/thread/scoped.rs | 2 +-
sgx_tstd/src/thread/tests.rs | 2 +-
sgx_tstd/src/time.rs | 2 +-
sgx_tstd/src/time/tests.rs | 2 +-
sgx_tstd/src/untrusted/fs.rs | 2 +-
sgx_tstd/src/untrusted/mod.rs | 2 +-
sgx_tstd/src/untrusted/path.rs | 2 +-
sgx_tstd/src/untrusted/time.rs | 2 +-
sgx_types/build.rs | 2 +-
sgx_types/src/cpu_features.rs | 2 +-
sgx_types/src/error/errno.rs | 2 +-
sgx_types/src/error/mod.rs | 2 +-
sgx_types/src/function.rs | 2 +-
sgx_types/src/lib.rs | 2 +-
sgx_types/src/macros.rs | 2 +-
sgx_types/src/marker.rs | 2 +-
sgx_types/src/memeq.rs | 2 +-
sgx_types/src/metadata.rs | 2 +-
sgx_types/src/types/crypto.rs | 2 +-
sgx_types/src/types/dcap.rs | 2 +-
sgx_types/src/types/dh.rs | 2 +-
sgx_types/src/types/key_exchange.rs | 2 +-
sgx_types/src/types/mod.rs | 2 +-
sgx_types/src/types/quote.rs | 2 +-
sgx_types/src/types/ra.rs | 2 +-
sgx_types/src/types/raw.rs | 2 +-
sgx_types/src/types/report2.rs | 2 +-
sgx_types/src/types/seal.rs | 2 +-
sgx_types/src/types/switchless.rs | 2 +-
sgx_types/src/types/tdx.rs | 2 +-
sgx_types/src/types/urts.rs | 2 +-
sgx_unwind/build.rs | 2 +-
sgx_unwind/src/lib.rs | 2 +-
sgx_unwind/src/libunwind.rs | 2 +-
sgx_unwind/src/macros.rs | 2 +-
sgx_urts/build.rs | 2 +-
sgx_urts/src/capi.rs | 2 +-
sgx_urts/src/enclave/init.rs | 2 +-
sgx_urts/src/enclave/mod.rs | 2 +-
sgx_urts/src/enclave/uninit.rs | 2 +-
sgx_urts/src/lib.rs | 2 +-
sgx_urts/src/msbuf.rs | 2 +-
sgx_urts/src/ocall/asyncio.rs | 2 +-
sgx_urts/src/ocall/env.rs | 2 +-
sgx_urts/src/ocall/fd.rs | 2 +-
sgx_urts/src/ocall/file.rs | 2 +-
sgx_urts/src/ocall/mem.rs | 2 +-
sgx_urts/src/ocall/mod.rs | 2 +-
sgx_urts/src/ocall/msbuf.rs | 2 +-
sgx_urts/src/ocall/net.rs | 2 +-
sgx_urts/src/ocall/pipe.rs | 2 +-
sgx_urts/src/ocall/process.rs | 2 +-
sgx_urts/src/ocall/sgxfile.rs | 2 +-
sgx_urts/src/ocall/socket.rs | 2 +-
sgx_urts/src/ocall/sync.rs | 2 +-
sgx_urts/src/ocall/sys.rs | 2 +-
sgx_urts/src/ocall/thread.rs | 2 +-
sgx_urts/src/ocall/time.rs | 2 +-
sgx_urts/src/ocall/util.rs | 2 +-
tests/app/build.rs | 2 +-
tests/app/src/main.rs | 2 +-
tests/enclave/src/lib.rs | 2 +-
703 files changed, 1145 insertions(+), 695 deletions(-)
diff --git a/.bazelversion b/.bazelversion
deleted file mode 100644
index 48f7a71d..00000000
--- a/.bazelversion
+++ /dev/null
@@ -1 +0,0 @@
-0.28.1
diff --git a/.github/workflows/license-check.yml b/.github/workflows/license-check.yml
new file mode 100644
index 00000000..c6a06eb2
--- /dev/null
+++ b/.github/workflows/license-check.yml
@@ -0,0 +1,33 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+name: License Check
+
+on: [push, pull_request]
+
+jobs:
+ license:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Check License Header
+ uses: apache/skywalking-eyes/header@501a28d2fb4a9b962661987e50cf0219631b32ff
+ # with:
+ # log: debug # optional: set the log level. The default value is `info`.
+ # config: .licenserc.yaml # optional: set the config file. The default value is `.licenserc.yaml`.
+ # token: # optional: the token that license eye uses when it needs to comment on the pull request. Set to empty ("") to disable commenting on pull request. The default value is ${{ github.token }}
+ # mode: # optional: Which mode License-Eye should be run in. Choices are `check` or `fix`. The default value is `check`.
\ No newline at end of file
diff --git a/.licenserc.yaml b/.licenserc.yaml
new file mode 100644
index 00000000..81a138cd
--- /dev/null
+++ b/.licenserc.yaml
@@ -0,0 +1,56 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+header:
+ license:
+ spdx-id: Apache-2.0
+ copyright-owner: Apache Software Foundation
+
+ paths-ignore:
+ # License and notice files
+ - 'licenses'
+ - 'LICENSE'
+ - 'NOTICE'
+ - 'DISCLAIMER'
+
+ # Documentation and configuration files
+ - '**/*.md'
+ - '**/Cargo.lock'
+ - 'rust-toolchain'
+ - '**/*.lds'
+
+ # Cryptographic and binary files for testing
+ - '**/*.pem'
+ - '**/*.key'
+ - '**/*.crt'
+ - '**/*.rsa'
+ - '**/*.der'
+
+ # Third-party libraries - included in licenses directory
+ - 'common/inc' # LICENSE-common-inc.txt
+ - 'sgx_tstd/hashbrown' # LICENSE-hashbrown.txt
+ - 'sgx_edl/edl/sgx_sync.edl' # LICENSE-intel-sgx.txt
+ - 'sgx_backtrace/sgx_backtrace_sys' # LICENSE-libbacktrace.txt
+ - 'sgx_unwind/libunwind' # LICENSE-libunwind.txt
+ - 'rustlib/' # LICENSE-rust.txt
+ - 'sgx_crypto/sgx_crypto_sys/tcrypto' # LICENSE-tcrypto.txt
+ - 'sgx_libc/sgx_tlibc_sys/tlibc/' # LICENSE-tlibc.txt
+ - 'sgx_libc/sgx_tlibc_sys/tsafecrt/' # LICENSE-tsafecrt.txt
+
+dependency:
+ files:
+ - 'Cargo.toml'
\ No newline at end of file
diff --git a/DISCLAIMER b/DISCLAIMER
new file mode 100644
index 00000000..f755dfd9
--- /dev/null
+++ b/DISCLAIMER
@@ -0,0 +1,8 @@
+Apache Teaclave (incubating) is an effort undergoing incubation at The Apache
+Software Foundation (ASF), sponsored by the Apache Incubator.
+Incubation is required of all newly accepted projects until a further review
+indicates that the infrastructure, communications, and decision making process
+have stabilized in a manner consistent with other successful ASF projects.
+While incubation status is not necessarily a reflection of the completeness or
+stability of the code, it does indicate that the project has yet to be fully
+endorsed by the ASF.
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
index 24ffd196..48952599 100644
--- a/LICENSE
+++ b/LICENSE
@@ -205,3 +205,32 @@
This product bundles various third-party components under other open source
licenses. This section summarizes those components and their licenses. See
licenses/ for text of these licenses.
+
+Third-party components included in this distribution:
+
+- common/inc
+ License: See licenses/LICENSE-common-inc.txt
+
+- sgx_tstd/hashbrown
+ License: See licenses/LICENSE-hashbrown.txt
+
+- sgx_edl/edl/sgx_sync.edl
+ License: See licenses/LICENSE-intel-sgx.txt
+
+- sgx_backtrace/sgx_backtrace_sys
+ License: See licenses/LICENSE-libbacktrace.txt
+
+- sgx_unwind/libunwind
+ License: See licenses/LICENSE-libunwind.txt
+
+- rustlib/
+ License: See licenses/LICENSE-rust.txt
+
+- sgx_crypto/sgx_crypto_sys/tcrypto
+ License: See licenses/LICENSE-tcrypto.txt
+
+- sgx_libc/sgx_tlibc_sys/tlibc/
+ License: See licenses/LICENSE-tlibc.txt
+
+- sgx_libc/sgx_tlibc_sys/tsafecrt/
+ License: See licenses/LICENSE-tsafecrt.txt
diff --git a/buildenv.mk b/buildenv.mk
index a2125f5a..b324f03a 100644
--- a/buildenv.mk
+++ b/buildenv.mk
@@ -13,7 +13,7 @@
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
-# under the License..
+# under the License.
#
#
diff --git a/common/inc/sgx_dcap_key_exchange.h b/common/inc/sgx_dcap_key_exchange.h
index cbdae318..8421e726 100644
--- a/common/inc/sgx_dcap_key_exchange.h
+++ b/common/inc/sgx_dcap_key_exchange.h
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#ifndef _SGX_DCAP_KEY_EXCHANGE_H_
#define _SGX_DCAP_KEY_EXCHANGE_H_
diff --git a/common/inc/sgx_dcap_tkey_exchange.h b/common/inc/sgx_dcap_tkey_exchange.h
index 76b4165f..e57a4ed8 100644
--- a/common/inc/sgx_dcap_tkey_exchange.h
+++ b/common/inc/sgx_dcap_tkey_exchange.h
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#ifndef _SGX_DCAP_TKEY_EXCHANGE_H_
#define _SGX_DCAP_TKEY_EXCHANGE_H_
diff --git a/licenses/LICENSE-common-inc.txt b/licenses/LICENSE-common-inc.txt
index aafca617..0197e628 100644
--- a/licenses/LICENSE-common-inc.txt
+++ b/licenses/LICENSE-common-inc.txt
@@ -57,4 +57,4 @@ software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
-under the License..
+under the License.
diff --git a/licenses/LICENSE-hashbrown.txt b/licenses/LICENSE-hashbrown.txt
new file mode 100644
index 00000000..da730d8d
--- /dev/null
+++ b/licenses/LICENSE-hashbrown.txt
@@ -0,0 +1,229 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+Copyright [yyyy] [name of copyright owner]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+=================================
+
+Copyright (c) 2016 Amanieu d'Antras
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
diff --git a/licenses/LICENSE-intel-sgx.txt b/licenses/LICENSE-intel-sgx.txt
new file mode 100644
index 00000000..dfac5e57
--- /dev/null
+++ b/licenses/LICENSE-intel-sgx.txt
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (C) 2011-2019 Intel Corporation. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+ * Neither the name of Intel Corporation nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/rustlib/profiler_builtins/src/lib.rs b/rustlib/profiler_builtins/src/lib.rs
index ef90f5fc..50e37810 100644
--- a/rustlib/profiler_builtins/src/lib.rs
+++ b/rustlib/profiler_builtins/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![feature(profiler_runtime)]
diff --git a/samplecode/backtrace/app/build.rs b/samplecode/backtrace/app/build.rs
index 23b8f5e7..935390b0 100644
--- a/samplecode/backtrace/app/build.rs
+++ b/samplecode/backtrace/app/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/samplecode/backtrace/app/src/main.rs b/samplecode/backtrace/app/src/main.rs
index cf9bec40..c59237c8 100644
--- a/samplecode/backtrace/app/src/main.rs
+++ b/samplecode/backtrace/app/src/main.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
extern crate sgx_urts;
diff --git a/samplecode/backtrace/enclave/src/lib.rs b/samplecode/backtrace/enclave/src/lib.rs
index 9997c07f..630e5d01 100644
--- a/samplecode/backtrace/enclave/src/lib.rs
+++ b/samplecode/backtrace/enclave/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![cfg_attr(not(target_vendor = "teaclave"), no_std)]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/samplecode/cov/app/build.rs b/samplecode/cov/app/build.rs
index 23b8f5e7..935390b0 100644
--- a/samplecode/cov/app/build.rs
+++ b/samplecode/cov/app/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/samplecode/cov/app/src/main.rs b/samplecode/cov/app/src/main.rs
index 8809f552..7c631d87 100644
--- a/samplecode/cov/app/src/main.rs
+++ b/samplecode/cov/app/src/main.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
extern crate sgx_urts;
diff --git a/samplecode/cov/enclave/src/lib.rs b/samplecode/cov/enclave/src/lib.rs
index f1c12fa1..bc8e3d58 100644
--- a/samplecode/cov/enclave/src/lib.rs
+++ b/samplecode/cov/enclave/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![cfg_attr(not(target_vendor = "teaclave"), no_std)]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/samplecode/crypto/app/build.rs b/samplecode/crypto/app/build.rs
index 23b8f5e7..935390b0 100644
--- a/samplecode/crypto/app/build.rs
+++ b/samplecode/crypto/app/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/samplecode/crypto/app/src/main.rs b/samplecode/crypto/app/src/main.rs
index e4ce9f5a..6eb2e09c 100644
--- a/samplecode/crypto/app/src/main.rs
+++ b/samplecode/crypto/app/src/main.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::redundant_static_lifetimes)]
#![allow(clippy::print_literal)]
diff --git a/samplecode/crypto/enclave/src/lib.rs b/samplecode/crypto/enclave/src/lib.rs
index 748247dc..4ddb96f7 100644
--- a/samplecode/crypto/enclave/src/lib.rs
+++ b/samplecode/crypto/enclave/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![cfg_attr(not(target_vendor = "teaclave"), no_std)]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/samplecode/helloworld/app/build.rs b/samplecode/helloworld/app/build.rs
index 23b8f5e7..935390b0 100644
--- a/samplecode/helloworld/app/build.rs
+++ b/samplecode/helloworld/app/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/samplecode/helloworld/app/src/main.rs b/samplecode/helloworld/app/src/main.rs
index 8809f552..7c631d87 100644
--- a/samplecode/helloworld/app/src/main.rs
+++ b/samplecode/helloworld/app/src/main.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
extern crate sgx_urts;
diff --git a/samplecode/helloworld/enclave/src/lib.rs b/samplecode/helloworld/enclave/src/lib.rs
index 5fd6daf4..2ab1bdf2 100644
--- a/samplecode/helloworld/enclave/src/lib.rs
+++ b/samplecode/helloworld/enclave/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![cfg_attr(not(target_vendor = "teaclave"), no_std)]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/samplecode/httpreq/app/build.rs b/samplecode/httpreq/app/build.rs
index 23b8f5e7..935390b0 100644
--- a/samplecode/httpreq/app/build.rs
+++ b/samplecode/httpreq/app/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/samplecode/httpreq/app/src/main.rs b/samplecode/httpreq/app/src/main.rs
index 41a53498..e61e52aa 100644
--- a/samplecode/httpreq/app/src/main.rs
+++ b/samplecode/httpreq/app/src/main.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
extern crate sgx_urts;
diff --git a/samplecode/httpreq/enclave/src/lib.rs b/samplecode/httpreq/enclave/src/lib.rs
index 6643d4a3..a581e225 100644
--- a/samplecode/httpreq/enclave/src/lib.rs
+++ b/samplecode/httpreq/enclave/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_libc;
extern crate sgx_oc;
diff --git a/samplecode/hyper-rustls-https-server/app/build.rs b/samplecode/hyper-rustls-https-server/app/build.rs
index 23b8f5e7..935390b0 100644
--- a/samplecode/hyper-rustls-https-server/app/build.rs
+++ b/samplecode/hyper-rustls-https-server/app/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/samplecode/hyper-rustls-https-server/app/src/main.rs b/samplecode/hyper-rustls-https-server/app/src/main.rs
index d9b922c0..712ad0ea 100644
--- a/samplecode/hyper-rustls-https-server/app/src/main.rs
+++ b/samplecode/hyper-rustls-https-server/app/src/main.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
extern crate sgx_urts;
diff --git a/samplecode/hyper-rustls-https-server/enclave/src/lib.rs b/samplecode/hyper-rustls-https-server/enclave/src/lib.rs
index 72102bff..52ba701f 100644
--- a/samplecode/hyper-rustls-https-server/enclave/src/lib.rs
+++ b/samplecode/hyper-rustls-https-server/enclave/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_libc;
extern crate sgx_types;
diff --git a/samplecode/logger/app/build.rs b/samplecode/logger/app/build.rs
index 23b8f5e7..935390b0 100644
--- a/samplecode/logger/app/build.rs
+++ b/samplecode/logger/app/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/samplecode/logger/app/src/main.rs b/samplecode/logger/app/src/main.rs
index c896afad..92a47574 100644
--- a/samplecode/logger/app/src/main.rs
+++ b/samplecode/logger/app/src/main.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
extern crate sgx_urts;
diff --git a/samplecode/logger/enclave/src/lib.rs b/samplecode/logger/enclave/src/lib.rs
index 01ef10a8..6a07d484 100644
--- a/samplecode/logger/enclave/src/lib.rs
+++ b/samplecode/logger/enclave/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_libc;
extern crate sgx_types;
diff --git a/samplecode/mutual-ra/app/build.rs b/samplecode/mutual-ra/app/build.rs
index 23b8f5e7..935390b0 100644
--- a/samplecode/mutual-ra/app/build.rs
+++ b/samplecode/mutual-ra/app/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/samplecode/mutual-ra/app/src/main.rs b/samplecode/mutual-ra/app/src/main.rs
index 9adf4436..e9a288d7 100644
--- a/samplecode/mutual-ra/app/src/main.rs
+++ b/samplecode/mutual-ra/app/src/main.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
extern crate sgx_urts;
diff --git a/samplecode/mutual-ra/enclave/src/cert.rs b/samplecode/mutual-ra/enclave/src/cert.rs
index 605a5cad..a98f47ef 100644
--- a/samplecode/mutual-ra/enclave/src/cert.rs
+++ b/samplecode/mutual-ra/enclave/src/cert.rs
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
use std::{str, ptr,io};
use std::time::*;
use std::untrusted::time::SystemTimeEx;
diff --git a/samplecode/mutual-ra/enclave/src/hex.rs b/samplecode/mutual-ra/enclave/src/hex.rs
index 028b4a74..47e247a1 100644
--- a/samplecode/mutual-ra/enclave/src/hex.rs
+++ b/samplecode/mutual-ra/enclave/src/hex.rs
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
// hex encoder and decoder used by rust-protobuf unittests
use std::char;
diff --git a/samplecode/mutual-ra/enclave/src/lib.rs b/samplecode/mutual-ra/enclave/src/lib.rs
index d0c9ce6e..1376333e 100644
--- a/samplecode/mutual-ra/enclave/src/lib.rs
+++ b/samplecode/mutual-ra/enclave/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
extern crate sgx_trts;
diff --git a/samplecode/regex/app/build.rs b/samplecode/regex/app/build.rs
index 23b8f5e7..935390b0 100644
--- a/samplecode/regex/app/build.rs
+++ b/samplecode/regex/app/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/samplecode/regex/app/src/main.rs b/samplecode/regex/app/src/main.rs
index 2f628ba9..04c3890b 100644
--- a/samplecode/regex/app/src/main.rs
+++ b/samplecode/regex/app/src/main.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
extern crate sgx_urts;
diff --git a/samplecode/regex/enclave/src/lib.rs b/samplecode/regex/enclave/src/lib.rs
index 7a25487f..7484ecda 100644
--- a/samplecode/regex/enclave/src/lib.rs
+++ b/samplecode/regex/enclave/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
diff --git a/samplecode/rpc/client/app/build.rs b/samplecode/rpc/client/app/build.rs
index 23b8f5e7..935390b0 100644
--- a/samplecode/rpc/client/app/build.rs
+++ b/samplecode/rpc/client/app/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/samplecode/rpc/client/app/src/main.rs b/samplecode/rpc/client/app/src/main.rs
index 5f98aa1b..83e24f4e 100644
--- a/samplecode/rpc/client/app/src/main.rs
+++ b/samplecode/rpc/client/app/src/main.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
extern crate sgx_urts;
diff --git a/samplecode/rpc/client/enclave/build.rs b/samplecode/rpc/client/enclave/build.rs
index df957770..65674b82 100644
--- a/samplecode/rpc/client/enclave/build.rs
+++ b/samplecode/rpc/client/enclave/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
use std::path::PathBuf;
diff --git a/samplecode/rpc/client/enclave/src/lib.rs b/samplecode/rpc/client/enclave/src/lib.rs
index cd0d9876..0b137724 100644
--- a/samplecode/rpc/client/enclave/src/lib.rs
+++ b/samplecode/rpc/client/enclave/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_libc;
extern crate sgx_types;
diff --git a/samplecode/rpc/proto/helloworld.proto b/samplecode/rpc/proto/helloworld.proto
index dea91d32..c330e5a0 100644
--- a/samplecode/rpc/proto/helloworld.proto
+++ b/samplecode/rpc/proto/helloworld.proto
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
syntax = "proto3";
diff --git a/samplecode/rpc/server/app/build.rs b/samplecode/rpc/server/app/build.rs
index 23b8f5e7..935390b0 100644
--- a/samplecode/rpc/server/app/build.rs
+++ b/samplecode/rpc/server/app/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/samplecode/rpc/server/app/src/main.rs b/samplecode/rpc/server/app/src/main.rs
index 2decf4c0..8e4fe5f3 100644
--- a/samplecode/rpc/server/app/src/main.rs
+++ b/samplecode/rpc/server/app/src/main.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
extern crate sgx_urts;
diff --git a/samplecode/rpc/server/enclave/build.rs b/samplecode/rpc/server/enclave/build.rs
index df957770..65674b82 100644
--- a/samplecode/rpc/server/enclave/build.rs
+++ b/samplecode/rpc/server/enclave/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
use std::path::PathBuf;
diff --git a/samplecode/rpc/server/enclave/src/lib.rs b/samplecode/rpc/server/enclave/src/lib.rs
index 27fd42ac..b928ddc1 100644
--- a/samplecode/rpc/server/enclave/src/lib.rs
+++ b/samplecode/rpc/server/enclave/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_libc;
extern crate sgx_types;
diff --git a/samplecode/seal/app/build.rs b/samplecode/seal/app/build.rs
index 23b8f5e7..935390b0 100644
--- a/samplecode/seal/app/build.rs
+++ b/samplecode/seal/app/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/samplecode/seal/app/src/main.rs b/samplecode/seal/app/src/main.rs
index 066b596c..15109614 100644
--- a/samplecode/seal/app/src/main.rs
+++ b/samplecode/seal/app/src/main.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
extern crate sgx_urts;
diff --git a/samplecode/seal/enclave/src/lib.rs b/samplecode/seal/enclave/src/lib.rs
index 95c3f81f..26ffb9ae 100644
--- a/samplecode/seal/enclave/src/lib.rs
+++ b/samplecode/seal/enclave/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![cfg_attr(not(target_vendor = "teaclave"), no_std)]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/samplecode/switchless/app/build.rs b/samplecode/switchless/app/build.rs
index 002ffed9..5e2652d8 100644
--- a/samplecode/switchless/app/build.rs
+++ b/samplecode/switchless/app/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/samplecode/switchless/app/src/main.rs b/samplecode/switchless/app/src/main.rs
index 2bcad663..c78787bf 100644
--- a/samplecode/switchless/app/src/main.rs
+++ b/samplecode/switchless/app/src/main.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
extern crate sgx_urts;
diff --git a/samplecode/switchless/enclave/src/lib.rs b/samplecode/switchless/enclave/src/lib.rs
index 9bc7332a..8bb1989f 100644
--- a/samplecode/switchless/enclave/src/lib.rs
+++ b/samplecode/switchless/enclave/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/samplecode/template/app/build.rs b/samplecode/template/app/build.rs
index 23b8f5e7..935390b0 100644
--- a/samplecode/template/app/build.rs
+++ b/samplecode/template/app/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/samplecode/template/app/src/main.rs b/samplecode/template/app/src/main.rs
index 4f9436e6..a8e7bcc3 100644
--- a/samplecode/template/app/src/main.rs
+++ b/samplecode/template/app/src/main.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
extern crate sgx_urts;
diff --git a/samplecode/template/enclave/src/lib.rs b/samplecode/template/enclave/src/lib.rs
index 10358e95..24098b48 100644
--- a/samplecode/template/enclave/src/lib.rs
+++ b/samplecode/template/enclave/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
diff --git a/samplecode/zlib-lazy-static-sample/app/build.rs b/samplecode/zlib-lazy-static-sample/app/build.rs
index 23b8f5e7..935390b0 100644
--- a/samplecode/zlib-lazy-static-sample/app/build.rs
+++ b/samplecode/zlib-lazy-static-sample/app/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/samplecode/zlib-lazy-static-sample/app/src/main.rs b/samplecode/zlib-lazy-static-sample/app/src/main.rs
index c9f761d5..53ba1960 100644
--- a/samplecode/zlib-lazy-static-sample/app/src/main.rs
+++ b/samplecode/zlib-lazy-static-sample/app/src/main.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
extern crate sgx_urts;
diff --git a/samplecode/zlib-lazy-static-sample/enclave/src/lib.rs b/samplecode/zlib-lazy-static-sample/enclave/src/lib.rs
index 084ce515..f76320c2 100644
--- a/samplecode/zlib-lazy-static-sample/enclave/src/lib.rs
+++ b/samplecode/zlib-lazy-static-sample/enclave/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_types;
diff --git a/sgx_alloc/src/alignalloc.rs b/sgx_alloc/src/alignalloc.rs
index cc71359e..e8daa955 100644
--- a/sgx_alloc/src/alignalloc.rs
+++ b/sgx_alloc/src/alignalloc.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! # align alloc crate for Rust SGX SDK
//!
diff --git a/sgx_alloc/src/alignbox.rs b/sgx_alloc/src/alignbox.rs
index ebdc2c4b..b5d1a3bc 100644
--- a/sgx_alloc/src/alignbox.rs
+++ b/sgx_alloc/src/alignbox.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! # align box crate for Rust SGX SDK
diff --git a/sgx_alloc/src/capi.rs b/sgx_alloc/src/capi.rs
index b83ecacf..97f60be3 100644
--- a/sgx_alloc/src/capi.rs
+++ b/sgx_alloc/src/capi.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::alignalloc::{AlignAlloc, AlignReq};
use core::alloc::Layout;
diff --git a/sgx_alloc/src/lib.rs b/sgx_alloc/src/lib.rs
index 8af6102a..3a4bfafa 100644
--- a/sgx_alloc/src/lib.rs
+++ b/sgx_alloc/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! # liballoc crate for Rust SGX SDK
//!
diff --git a/sgx_alloc/src/system.rs b/sgx_alloc/src/system.rs
index 3d33f041..53269957 100644
--- a/sgx_alloc/src/system.rs
+++ b/sgx_alloc/src/system.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! # liballoc crate for Rust SGX SDK
diff --git a/sgx_backtrace/sgx_backtrace_sys/build.rs b/sgx_backtrace/sgx_backtrace_sys/build.rs
index 3097d75e..13a406b6 100644
--- a/sgx_backtrace/sgx_backtrace_sys/build.rs
+++ b/sgx_backtrace/sgx_backtrace_sys/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use sgx_build_helper as build_helper;
diff --git a/sgx_backtrace/sgx_backtrace_sys/src/lib.rs b/sgx_backtrace/sgx_backtrace_sys/src/lib.rs
index bdcb9698..a6e7f7e2 100644
--- a/sgx_backtrace/sgx_backtrace_sys/src/lib.rs
+++ b/sgx_backtrace/sgx_backtrace_sys/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_backtrace/src/backtrace/libunwind.rs b/sgx_backtrace/src/backtrace/libunwind.rs
index 1352ca62..23f196ce 100644
--- a/sgx_backtrace/src/backtrace/libunwind.rs
+++ b/sgx_backtrace/src/backtrace/libunwind.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Backtrace support using libunwind/gcc_s/etc APIs.
//!
diff --git a/sgx_backtrace/src/backtrace/mod.rs b/sgx_backtrace/src/backtrace/mod.rs
index f0cca592..eae555ee 100644
--- a/sgx_backtrace/src/backtrace/mod.rs
+++ b/sgx_backtrace/src/backtrace/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::ffi::c_void;
use core::fmt;
diff --git a/sgx_backtrace/src/capture.rs b/sgx_backtrace/src/capture.rs
index 8d48376b..feaa71d3 100644
--- a/sgx_backtrace/src/capture.rs
+++ b/sgx_backtrace/src/capture.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::PrintFmt;
use crate::{resolve, resolve_frame, trace, BacktraceFmt, Symbol, SymbolName};
diff --git a/sgx_backtrace/src/lib.rs b/sgx_backtrace/src/lib.rs
index d0da8b77..a9de80eb 100644
--- a/sgx_backtrace/src/lib.rs
+++ b/sgx_backtrace/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! A library for acquiring a backtrace at runtime
//!
diff --git a/sgx_backtrace/src/print.rs b/sgx_backtrace/src/print.rs
index f70a9caa..02d4e5c4 100644
--- a/sgx_backtrace/src/print.rs
+++ b/sgx_backtrace/src/print.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::{BacktraceFrame, BacktraceSymbol};
use super::{BytesOrWideString, Frame, SymbolName};
diff --git a/sgx_backtrace/src/symbolize/libbacktrace.rs b/sgx_backtrace/src/symbolize/libbacktrace.rs
index b45d5ee3..f8e3e940 100644
--- a/sgx_backtrace/src/symbolize/libbacktrace.rs
+++ b/sgx_backtrace/src/symbolize/libbacktrace.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Symbolication strategy using the DWARF-parsing code in libbacktrace.
//!
diff --git a/sgx_backtrace/src/symbolize/mod.rs b/sgx_backtrace/src/symbolize/mod.rs
index 3abd580f..1a0508c2 100644
--- a/sgx_backtrace/src/symbolize/mod.rs
+++ b/sgx_backtrace/src/symbolize/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use alloc::vec::Vec;
use core::{fmt, str};
diff --git a/sgx_backtrace/src/types.rs b/sgx_backtrace/src/types.rs
index a4d9675f..d01ed31a 100644
--- a/sgx_backtrace/src/types.rs
+++ b/sgx_backtrace/src/types.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Platform dependent types.
diff --git a/sgx_build_helper/build_helper/src/lib.rs b/sgx_build_helper/build_helper/src/lib.rs
index f59e28cf..18e45199 100644
--- a/sgx_build_helper/build_helper/src/lib.rs
+++ b/sgx_build_helper/build_helper/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::ffi::OsStr;
use std::fs::File;
diff --git a/sgx_build_helper/download_prebuilt/build.rs b/sgx_build_helper/download_prebuilt/build.rs
index c2552858..e115b1ee 100644
--- a/sgx_build_helper/download_prebuilt/build.rs
+++ b/sgx_build_helper/download_prebuilt/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use sgx_build_helper as build_helper;
diff --git a/sgx_build_helper/download_prebuilt/src/lib.rs b/sgx_build_helper/download_prebuilt/src/lib.rs
index 46950e2d..b248758b 100644
--- a/sgx_build_helper/download_prebuilt/src/lib.rs
+++ b/sgx_build_helper/download_prebuilt/src/lib.rs
@@ -13,4 +13,4 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
diff --git a/sgx_crypto/sgx_crypto_sys/build.rs b/sgx_crypto/sgx_crypto_sys/build.rs
index 10e56161..c2938a3f 100644
--- a/sgx_crypto/sgx_crypto_sys/build.rs
+++ b/sgx_crypto/sgx_crypto_sys/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(unused_imports)]
diff --git a/sgx_crypto/sgx_crypto_sys/src/lib.rs b/sgx_crypto/sgx_crypto_sys/src/lib.rs
index eff0b118..6b759fde 100644
--- a/sgx_crypto/sgx_crypto_sys/src/lib.rs
+++ b/sgx_crypto/sgx_crypto_sys/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! # Cryptography Library
//!
diff --git a/sgx_crypto/src/aes/cbc.rs b/sgx_crypto/src/aes/cbc.rs
index f0b6bdfd..9ba390b3 100644
--- a/sgx_crypto/src/aes/cbc.rs
+++ b/sgx_crypto/src/aes/cbc.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::array::TryFromSliceError;
use core::convert::{From, TryFrom, TryInto};
diff --git a/sgx_crypto/src/aes/ccm.rs b/sgx_crypto/src/aes/ccm.rs
index 52190b75..a75c48c9 100644
--- a/sgx_crypto/src/aes/ccm.rs
+++ b/sgx_crypto/src/aes/ccm.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::array::TryFromSliceError;
use core::convert::{From, TryFrom, TryInto};
diff --git a/sgx_crypto/src/aes/ctr.rs b/sgx_crypto/src/aes/ctr.rs
index bd2a4922..fee879cf 100644
--- a/sgx_crypto/src/aes/ctr.rs
+++ b/sgx_crypto/src/aes/ctr.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::array::TryFromSliceError;
use core::convert::{From, TryFrom, TryInto};
diff --git a/sgx_crypto/src/aes/gcm.rs b/sgx_crypto/src/aes/gcm.rs
index ab7d2a46..ba873e7b 100644
--- a/sgx_crypto/src/aes/gcm.rs
+++ b/sgx_crypto/src/aes/gcm.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::array::TryFromSliceError;
use core::convert::{From, TryFrom, TryInto};
diff --git a/sgx_crypto/src/aes/mod.rs b/sgx_crypto/src/aes/mod.rs
index 1302d5e5..c98618e4 100644
--- a/sgx_crypto/src/aes/mod.rs
+++ b/sgx_crypto/src/aes/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub mod cbc;
pub mod ccm;
diff --git a/sgx_crypto/src/ecc/mod.rs b/sgx_crypto/src/ecc/mod.rs
index 4f7657f0..2032002c 100644
--- a/sgx_crypto/src/ecc/mod.rs
+++ b/sgx_crypto/src/ecc/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::mac::AesCMac;
use core::convert::From;
diff --git a/sgx_crypto/src/lib.rs b/sgx_crypto/src/lib.rs
index e5797ef9..02ec2caa 100644
--- a/sgx_crypto/src/lib.rs
+++ b/sgx_crypto/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! # Cryptography Library
//!
diff --git a/sgx_crypto/src/mac/cmac.rs b/sgx_crypto/src/mac/cmac.rs
index 94daf3c9..b5271b3f 100644
--- a/sgx_crypto/src/mac/cmac.rs
+++ b/sgx_crypto/src/mac/cmac.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::mem;
use core::ptr;
diff --git a/sgx_crypto/src/mac/hmac.rs b/sgx_crypto/src/mac/hmac.rs
index ae8e0390..fd184301 100644
--- a/sgx_crypto/src/mac/hmac.rs
+++ b/sgx_crypto/src/mac/hmac.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use alloc::borrow::ToOwned;
use alloc::vec::Vec;
diff --git a/sgx_crypto/src/mac/mod.rs b/sgx_crypto/src/mac/mod.rs
index 6e57e830..78075468 100644
--- a/sgx_crypto/src/mac/mod.rs
+++ b/sgx_crypto/src/mac/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod cmac;
mod hmac;
diff --git a/sgx_crypto/src/rsa/mod.rs b/sgx_crypto/src/rsa/mod.rs
index f2365bb2..7b75c9c7 100644
--- a/sgx_crypto/src/rsa/mod.rs
+++ b/sgx_crypto/src/rsa/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod rsa2048;
mod rsa3072;
diff --git a/sgx_crypto/src/rsa/rsa2048.rs b/sgx_crypto/src/rsa/rsa2048.rs
index e8c148ce..acdaa732 100644
--- a/sgx_crypto/src/rsa/rsa2048.rs
+++ b/sgx_crypto/src/rsa/rsa2048.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::rsa::RsaPrivateType;
use alloc::vec::Vec;
diff --git a/sgx_crypto/src/rsa/rsa3072.rs b/sgx_crypto/src/rsa/rsa3072.rs
index 5040bb06..6fbbbdee 100644
--- a/sgx_crypto/src/rsa/rsa3072.rs
+++ b/sgx_crypto/src/rsa/rsa3072.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::rsa::RsaPrivateType;
use alloc::vec::Vec;
diff --git a/sgx_crypto/src/sha/mod.rs b/sgx_crypto/src/sha/mod.rs
index c9c70bca..7b45c188 100644
--- a/sgx_crypto/src/sha/mod.rs
+++ b/sgx_crypto/src/sha/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod sha1;
mod sha256;
diff --git a/sgx_crypto/src/sha/sha1.rs b/sgx_crypto/src/sha/sha1.rs
index f661dc40..2e3ea8ac 100644
--- a/sgx_crypto/src/sha/sha1.rs
+++ b/sgx_crypto/src/sha/sha1.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::mem;
use core::ptr;
diff --git a/sgx_crypto/src/sha/sha256.rs b/sgx_crypto/src/sha/sha256.rs
index aecf841e..6a479f25 100644
--- a/sgx_crypto/src/sha/sha256.rs
+++ b/sgx_crypto/src/sha/sha256.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::mem;
use core::ptr;
diff --git a/sgx_crypto/src/sha/sha384.rs b/sgx_crypto/src/sha/sha384.rs
index 44d4d644..a7a714c4 100644
--- a/sgx_crypto/src/sha/sha384.rs
+++ b/sgx_crypto/src/sha/sha384.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::mem;
use core::ptr;
diff --git a/sgx_crypto/src/sm/mod.rs b/sgx_crypto/src/sm/mod.rs
index f1e2644c..3bdef972 100644
--- a/sgx_crypto/src/sm/mod.rs
+++ b/sgx_crypto/src/sm/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub mod sm2;
pub mod sm3;
diff --git a/sgx_crypto/src/sm/sm2/mod.rs b/sgx_crypto/src/sm/sm2/mod.rs
index 53cff256..08d15e2b 100644
--- a/sgx_crypto/src/sm/sm2/mod.rs
+++ b/sgx_crypto/src/sm/sm2/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sm4::ccm::{Aad, Nonce, Sm4Ccm};
use core::convert::From;
diff --git a/sgx_crypto/src/sm/sm3/mod.rs b/sgx_crypto/src/sm/sm3/mod.rs
index ab104c2e..1329dc9a 100644
--- a/sgx_crypto/src/sm/sm3/mod.rs
+++ b/sgx_crypto/src/sm/sm3/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::mem;
use core::ptr;
diff --git a/sgx_crypto/src/sm/sm4/cbc.rs b/sgx_crypto/src/sm/sm4/cbc.rs
index 3d903a59..b59c7a15 100644
--- a/sgx_crypto/src/sm/sm4/cbc.rs
+++ b/sgx_crypto/src/sm/sm4/cbc.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::array::TryFromSliceError;
use core::convert::{From, TryFrom, TryInto};
diff --git a/sgx_crypto/src/sm/sm4/ccm.rs b/sgx_crypto/src/sm/sm4/ccm.rs
index b065d8b9..1d17a95d 100644
--- a/sgx_crypto/src/sm/sm4/ccm.rs
+++ b/sgx_crypto/src/sm/sm4/ccm.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::array::TryFromSliceError;
use core::convert::{From, TryFrom, TryInto};
diff --git a/sgx_crypto/src/sm/sm4/ctr.rs b/sgx_crypto/src/sm/sm4/ctr.rs
index 8889573a..8deeb916 100644
--- a/sgx_crypto/src/sm/sm4/ctr.rs
+++ b/sgx_crypto/src/sm/sm4/ctr.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::array::TryFromSliceError;
use core::convert::{From, TryFrom, TryInto};
diff --git a/sgx_crypto/src/sm/sm4/mod.rs b/sgx_crypto/src/sm/sm4/mod.rs
index 851f6e2e..28fafafd 100644
--- a/sgx_crypto/src/sm/sm4/mod.rs
+++ b/sgx_crypto/src/sm/sm4/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub mod cbc;
pub mod ccm;
diff --git a/sgx_dcap/message/src/lib.rs b/sgx_dcap/message/src/lib.rs
index c3eb2d2f..d61a73c1 100644
--- a/sgx_dcap/message/src/lib.rs
+++ b/sgx_dcap/message/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_dcap/message/src/message.rs b/sgx_dcap/message/src/message.rs
index 1437e711..3fdc2c0e 100644
--- a/sgx_dcap/message/src/message.rs
+++ b/sgx_dcap/message/src/message.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use alloc::alloc::Global;
use alloc::boxed::Box;
diff --git a/sgx_dcap/tkey_exchange/src/capi/initiator.rs b/sgx_dcap/tkey_exchange/src/capi/initiator.rs
index d642a1f8..b5919a2f 100644
--- a/sgx_dcap/tkey_exchange/src/capi/initiator.rs
+++ b/sgx_dcap/tkey_exchange/src/capi/initiator.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::session::Initiator;
use crate::QveReportInfo;
diff --git a/sgx_dcap/tkey_exchange/src/capi/mod.rs b/sgx_dcap/tkey_exchange/src/capi/mod.rs
index 1cd9bd15..a892110c 100644
--- a/sgx_dcap/tkey_exchange/src/capi/mod.rs
+++ b/sgx_dcap/tkey_exchange/src/capi/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod initiator;
mod responder;
diff --git a/sgx_dcap/tkey_exchange/src/capi/responder.rs b/sgx_dcap/tkey_exchange/src/capi/responder.rs
index 11d256c7..6a742951 100644
--- a/sgx_dcap/tkey_exchange/src/capi/responder.rs
+++ b/sgx_dcap/tkey_exchange/src/capi/responder.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::session::Responder;
use crate::QveReportInfo;
diff --git a/sgx_dcap/tkey_exchange/src/ecall/initiator.rs b/sgx_dcap/tkey_exchange/src/ecall/initiator.rs
index 286bf349..52f5c9f7 100644
--- a/sgx_dcap/tkey_exchange/src/ecall/initiator.rs
+++ b/sgx_dcap/tkey_exchange/src/ecall/initiator.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::session::Initiator;
use crate::QveReportInfo;
diff --git a/sgx_dcap/tkey_exchange/src/ecall/mod.rs b/sgx_dcap/tkey_exchange/src/ecall/mod.rs
index 1cd9bd15..a892110c 100644
--- a/sgx_dcap/tkey_exchange/src/ecall/mod.rs
+++ b/sgx_dcap/tkey_exchange/src/ecall/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod initiator;
mod responder;
diff --git a/sgx_dcap/tkey_exchange/src/ecall/responder.rs b/sgx_dcap/tkey_exchange/src/ecall/responder.rs
index 9bc5b1e2..f0b97520 100644
--- a/sgx_dcap/tkey_exchange/src/ecall/responder.rs
+++ b/sgx_dcap/tkey_exchange/src/ecall/responder.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::session::Responder;
use crate::QveReportInfo;
diff --git a/sgx_dcap/tkey_exchange/src/lib.rs b/sgx_dcap/tkey_exchange/src/lib.rs
index 666ecb99..4b85a074 100644
--- a/sgx_dcap/tkey_exchange/src/lib.rs
+++ b/sgx_dcap/tkey_exchange/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_dcap/tkey_exchange/src/session/initiator.rs b/sgx_dcap/tkey_exchange/src/session/initiator.rs
index 03f00b8e..cedb34dd 100644
--- a/sgx_dcap/tkey_exchange/src/session/initiator.rs
+++ b/sgx_dcap/tkey_exchange/src/session/initiator.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::manager::INITIATOR_SESSION_MAGAGER;
use super::manager::{Context, InitiatorState, Role, Session};
diff --git a/sgx_dcap/tkey_exchange/src/session/manager.rs b/sgx_dcap/tkey_exchange/src/session/manager.rs
index de0f54c8..8e7af88c 100644
--- a/sgx_dcap/tkey_exchange/src/session/manager.rs
+++ b/sgx_dcap/tkey_exchange/src/session/manager.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use alloc::collections::LinkedList;
use alloc::sync::Arc;
diff --git a/sgx_dcap/tkey_exchange/src/session/mod.rs b/sgx_dcap/tkey_exchange/src/session/mod.rs
index 612fb938..d8624e3c 100644
--- a/sgx_dcap/tkey_exchange/src/session/mod.rs
+++ b/sgx_dcap/tkey_exchange/src/session/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod initiator;
mod manager;
diff --git a/sgx_dcap/tkey_exchange/src/session/responder.rs b/sgx_dcap/tkey_exchange/src/session/responder.rs
index 3d8f7fb0..e6eb1210 100644
--- a/sgx_dcap/tkey_exchange/src/session/responder.rs
+++ b/sgx_dcap/tkey_exchange/src/session/responder.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::manager::RESPONDER_SESSION_MAGAGER;
use super::manager::{DropKey, DropPrivateKey, DropShareKey};
diff --git a/sgx_dcap/tvl/src/capi.rs b/sgx_dcap/tvl/src/capi.rs
index 30b8d08e..72e4ec90 100644
--- a/sgx_dcap/tvl/src/capi.rs
+++ b/sgx_dcap/tvl/src/capi.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::QveReportInfo;
use core::ptr;
diff --git a/sgx_dcap/tvl/src/lib.rs b/sgx_dcap/tvl/src/lib.rs
index 751530f0..529599b5 100644
--- a/sgx_dcap/tvl/src/lib.rs
+++ b/sgx_dcap/tvl/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_dcap/tvl/src/tvl.rs b/sgx_dcap/tvl/src/tvl.rs
index 9f95f0cc..e377eecd 100644
--- a/sgx_dcap/tvl/src/tvl.rs
+++ b/sgx_dcap/tvl/src/tvl.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::mem;
use sgx_crypto::sha::Sha256;
diff --git a/sgx_demangle/src/legacy.rs b/sgx_demangle/src/legacy.rs
index 5f05d2a9..aa38c58a 100644
--- a/sgx_demangle/src/legacy.rs
+++ b/sgx_demangle/src/legacy.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::manual_strip)]
diff --git a/sgx_demangle/src/lib.rs b/sgx_demangle/src/lib.rs
index 5491e4c7..ba895492 100644
--- a/sgx_demangle/src/lib.rs
+++ b/sgx_demangle/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Demangle Rust compiler symbol names.
//!
diff --git a/sgx_demangle/src/v0.rs b/sgx_demangle/src/v0.rs
index b034925c..cd3ab2d2 100644
--- a/sgx_demangle/src/v0.rs
+++ b/sgx_demangle/src/v0.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::convert::TryFrom;
use core::{char, fmt, iter, mem, str};
diff --git a/sgx_edl/edl/inc/addrinfo.h b/sgx_edl/edl/inc/addrinfo.h
index 4317805f..48f9be25 100644
--- a/sgx_edl/edl/inc/addrinfo.h
+++ b/sgx_edl/edl/inc/addrinfo.h
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#ifndef _EDL_ADDRINFO_H_
#define _EDL_ADDRINFO_H_
diff --git a/sgx_edl/edl/inc/dirent.h b/sgx_edl/edl/inc/dirent.h
index 8ae83ded..ed07c451 100644
--- a/sgx_edl/edl/inc/dirent.h
+++ b/sgx_edl/edl/inc/dirent.h
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#ifndef _EDL_DIRENT_H_
#define _EDL_DIRENT_H_
diff --git a/sgx_edl/edl/inc/stat.h b/sgx_edl/edl/inc/stat.h
index 45110812..ae81fafa 100644
--- a/sgx_edl/edl/inc/stat.h
+++ b/sgx_edl/edl/inc/stat.h
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#ifndef _EDL_STAT_H_
#define _EDL_STAT_H_
diff --git a/sgx_edl/src/lib.rs b/sgx_edl/src/lib.rs
index 5ad485bc..1e12dcfc 100644
--- a/sgx_edl/src/lib.rs
+++ b/sgx_edl/src/lib.rs
@@ -13,6 +13,6 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
diff --git a/sgx_ffi/src/ascii.rs b/sgx_ffi/src/ascii.rs
index 5f96fb86..2b3cc0ae 100644
--- a/sgx_ffi/src/ascii.rs
+++ b/sgx_ffi/src/ascii.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Operations on ASCII strings and characters.
//!
diff --git a/sgx_ffi/src/c_str.rs b/sgx_ffi/src/c_str.rs
index bce0e7ad..a727a562 100644
--- a/sgx_ffi/src/c_str.rs
+++ b/sgx_ffi/src/c_str.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub use alloc::ffi::{CString, FromVecWithNulError, IntoStringError, NulError};
pub use core::ffi::FromBytesUntilNulError;
diff --git a/sgx_ffi/src/lib.rs b/sgx_ffi/src/lib.rs
index 3c88849b..82de1430 100644
--- a/sgx_ffi/src/lib.rs
+++ b/sgx_ffi/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_ffi/src/memchr.rs b/sgx_ffi/src/memchr.rs
index 64eb51db..559751e5 100644
--- a/sgx_ffi/src/memchr.rs
+++ b/sgx_ffi/src/memchr.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(feature = "unit_test")]
mod tests;
diff --git a/sgx_ffi/src/memchr/tests.rs b/sgx_ffi/src/memchr/tests.rs
index dc73f59f..83b5e5f6 100644
--- a/sgx_ffi/src/memchr/tests.rs
+++ b/sgx_ffi/src/memchr/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
// test the implementations for the current platform
use super::{memchr, memrchr};
diff --git a/sgx_key_exchange/message/src/lib.rs b/sgx_key_exchange/message/src/lib.rs
index c3eb2d2f..d61a73c1 100644
--- a/sgx_key_exchange/message/src/lib.rs
+++ b/sgx_key_exchange/message/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_key_exchange/message/src/message.rs b/sgx_key_exchange/message/src/message.rs
index 20959cd3..8adb091b 100644
--- a/sgx_key_exchange/message/src/message.rs
+++ b/sgx_key_exchange/message/src/message.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use alloc::alloc::Global;
use alloc::boxed::Box;
diff --git a/sgx_key_exchange/tkey_exchange/src/capi.rs b/sgx_key_exchange/tkey_exchange/src/capi.rs
index b5010796..47929404 100644
--- a/sgx_key_exchange/tkey_exchange/src/capi.rs
+++ b/sgx_key_exchange/tkey_exchange/src/capi.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::session::Initiator;
use core::mem::{self, ManuallyDrop};
diff --git a/sgx_key_exchange/tkey_exchange/src/lib.rs b/sgx_key_exchange/tkey_exchange/src/lib.rs
index 11e066d0..1a408b86 100644
--- a/sgx_key_exchange/tkey_exchange/src/lib.rs
+++ b/sgx_key_exchange/tkey_exchange/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_key_exchange/tkey_exchange/src/session/ecall.rs b/sgx_key_exchange/tkey_exchange/src/session/ecall.rs
index e2525bdb..a66c688a 100644
--- a/sgx_key_exchange/tkey_exchange/src/session/ecall.rs
+++ b/sgx_key_exchange/tkey_exchange/src/session/ecall.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::Initiator;
use core::mem::{self, ManuallyDrop};
diff --git a/sgx_key_exchange/tkey_exchange/src/session/initiator.rs b/sgx_key_exchange/tkey_exchange/src/session/initiator.rs
index f597aaa8..84e4ba53 100644
--- a/sgx_key_exchange/tkey_exchange/src/session/initiator.rs
+++ b/sgx_key_exchange/tkey_exchange/src/session/initiator.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::manager::SESSION_MAGAGER;
use super::manager::{Context, Session, State};
diff --git a/sgx_key_exchange/tkey_exchange/src/session/manager.rs b/sgx_key_exchange/tkey_exchange/src/session/manager.rs
index 14b1b043..d5f55c5f 100644
--- a/sgx_key_exchange/tkey_exchange/src/session/manager.rs
+++ b/sgx_key_exchange/tkey_exchange/src/session/manager.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use alloc::boxed::Box;
use alloc::collections::LinkedList;
diff --git a/sgx_key_exchange/tkey_exchange/src/session/mod.rs b/sgx_key_exchange/tkey_exchange/src/session/mod.rs
index 88978faa..c9d5d261 100644
--- a/sgx_key_exchange/tkey_exchange/src/session/mod.rs
+++ b/sgx_key_exchange/tkey_exchange/src/session/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod ecall;
mod initiator;
diff --git a/sgx_key_exchange/ukey_exchange/build.rs b/sgx_key_exchange/ukey_exchange/build.rs
index f539790a..f3211799 100644
--- a/sgx_key_exchange/ukey_exchange/build.rs
+++ b/sgx_key_exchange/ukey_exchange/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/sgx_key_exchange/ukey_exchange/src/capi.rs b/sgx_key_exchange/ukey_exchange/src/capi.rs
index 76b8cd9a..0bf9fe74 100644
--- a/sgx_key_exchange/ukey_exchange/src/capi.rs
+++ b/sgx_key_exchange/ukey_exchange/src/capi.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::Initiator;
use sgx_ra_msg::RaMsg2;
diff --git a/sgx_key_exchange/ukey_exchange/src/lib.rs b/sgx_key_exchange/ukey_exchange/src/lib.rs
index 852d79e9..f0248add 100644
--- a/sgx_key_exchange/ukey_exchange/src/lib.rs
+++ b/sgx_key_exchange/ukey_exchange/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![feature(allocator_api)]
#![feature(lazy_cell)]
diff --git a/sgx_key_exchange/ukey_exchange/src/session.rs b/sgx_key_exchange/ukey_exchange/src/session.rs
index 97cec698..a0917b47 100644
--- a/sgx_key_exchange/ukey_exchange/src/session.rs
+++ b/sgx_key_exchange/ukey_exchange/src/session.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(dead_code)]
diff --git a/sgx_libc/sgx_tlibc_sys/build.rs b/sgx_libc/sgx_tlibc_sys/build.rs
index a153874b..16fa98d0 100644
--- a/sgx_libc/sgx_tlibc_sys/build.rs
+++ b/sgx_libc/sgx_tlibc_sys/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(unused_imports)]
diff --git a/sgx_libc/sgx_tlibc_sys/src/lib.rs b/sgx_libc/sgx_tlibc_sys/src/lib.rs
index 04bce752..97ddd86a 100644
--- a/sgx_libc/sgx_tlibc_sys/src/lib.rs
+++ b/sgx_libc/sgx_tlibc_sys/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_libc/src/android/aarch64/mod.rs b/sgx_libc/src/android/aarch64/mod.rs
index ac1277b9..3e37a983 100644
--- a/sgx_libc/src/android/aarch64/mod.rs
+++ b/sgx_libc/src/android/aarch64/mod.rs
@@ -13,6 +13,6 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub use sgx_oc::android::aarch64::*;
diff --git a/sgx_libc/src/android/mod.rs b/sgx_libc/src/android/mod.rs
index 9ed58b92..e4ee236c 100644
--- a/sgx_libc/src/android/mod.rs
+++ b/sgx_libc/src/android/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
cfg_if! {
if #[cfg(target_arch = "aarch64")] {
diff --git a/sgx_libc/src/lib.rs b/sgx_libc/src/lib.rs
index 80e517ca..963541dd 100644
--- a/sgx_libc/src/lib.rs
+++ b/sgx_libc/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_libc/src/linux/edl/mod.rs b/sgx_libc/src/linux/edl/mod.rs
index 43d72da1..69943379 100644
--- a/sgx_libc/src/linux/edl/mod.rs
+++ b/sgx_libc/src/linux/edl/mod.rs
@@ -13,6 +13,6 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub use sgx_oc::linux::edl::*;
diff --git a/sgx_libc/src/linux/mod.rs b/sgx_libc/src/linux/mod.rs
index 1b8074bb..a35de71b 100644
--- a/sgx_libc/src/linux/mod.rs
+++ b/sgx_libc/src/linux/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::mem;
use core::ptr;
diff --git a/sgx_libc/src/linux/ocall/asyncio.rs b/sgx_libc/src/linux/ocall/asyncio.rs
index 34d9678f..ac6b8e1f 100644
--- a/sgx_libc/src/linux/ocall/asyncio.rs
+++ b/sgx_libc/src/linux/ocall/asyncio.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::linux::*;
use alloc::vec::Vec;
diff --git a/sgx_libc/src/linux/ocall/env.rs b/sgx_libc/src/linux/ocall/env.rs
index 36fc6479..ae21dbff 100644
--- a/sgx_libc/src/linux/ocall/env.rs
+++ b/sgx_libc/src/linux/ocall/env.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::linux::*;
use core::ptr;
diff --git a/sgx_libc/src/linux/ocall/fd.rs b/sgx_libc/src/linux/ocall/fd.rs
index 3ab67ba0..199a9d43 100644
--- a/sgx_libc/src/linux/ocall/fd.rs
+++ b/sgx_libc/src/linux/ocall/fd.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::linux::*;
use alloc::vec::Vec;
diff --git a/sgx_libc/src/linux/ocall/file.rs b/sgx_libc/src/linux/ocall/file.rs
index 2a68d423..be8c364e 100644
--- a/sgx_libc/src/linux/ocall/file.rs
+++ b/sgx_libc/src/linux/ocall/file.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::linux::*;
use core::ptr;
diff --git a/sgx_libc/src/linux/ocall/mem.rs b/sgx_libc/src/linux/ocall/mem.rs
index 1a29d49a..de103597 100644
--- a/sgx_libc/src/linux/ocall/mem.rs
+++ b/sgx_libc/src/linux/ocall/mem.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::linux::*;
use core::alloc::Layout;
diff --git a/sgx_libc/src/linux/ocall/mod.rs b/sgx_libc/src/linux/ocall/mod.rs
index 39e93998..c0de973f 100644
--- a/sgx_libc/src/linux/ocall/mod.rs
+++ b/sgx_libc/src/linux/ocall/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub use crate::linux::edl::*;
diff --git a/sgx_libc/src/linux/ocall/net.rs b/sgx_libc/src/linux/ocall/net.rs
index 7e418918..9a1c6e77 100644
--- a/sgx_libc/src/linux/ocall/net.rs
+++ b/sgx_libc/src/linux/ocall/net.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::linux::*;
use alloc::boxed::Box;
diff --git a/sgx_libc/src/linux/ocall/pipe.rs b/sgx_libc/src/linux/ocall/pipe.rs
index badbda57..cca0eefa 100644
--- a/sgx_libc/src/linux/ocall/pipe.rs
+++ b/sgx_libc/src/linux/ocall/pipe.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::linux::*;
use sgx_oc::linux::ocall;
diff --git a/sgx_libc/src/linux/ocall/process.rs b/sgx_libc/src/linux/ocall/process.rs
index c9900791..7da537e3 100644
--- a/sgx_libc/src/linux/ocall/process.rs
+++ b/sgx_libc/src/linux/ocall/process.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::linux::*;
use sgx_oc::linux::ocall;
diff --git a/sgx_libc/src/linux/ocall/socket.rs b/sgx_libc/src/linux/ocall/socket.rs
index 6a17b57b..cb448a95 100644
--- a/sgx_libc/src/linux/ocall/socket.rs
+++ b/sgx_libc/src/linux/ocall/socket.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::linux::*;
use core::cmp;
diff --git a/sgx_libc/src/linux/ocall/sync.rs b/sgx_libc/src/linux/ocall/sync.rs
index a05707a3..ba38d9a2 100644
--- a/sgx_libc/src/linux/ocall/sync.rs
+++ b/sgx_libc/src/linux/ocall/sync.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::linux::*;
use core::convert::TryFrom;
diff --git a/sgx_libc/src/linux/ocall/sys.rs b/sgx_libc/src/linux/ocall/sys.rs
index 3e95dc26..ef9ba0f7 100644
--- a/sgx_libc/src/linux/ocall/sys.rs
+++ b/sgx_libc/src/linux/ocall/sys.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::linux::*;
use core::mem;
diff --git a/sgx_libc/src/linux/ocall/syscall.rs b/sgx_libc/src/linux/ocall/syscall.rs
index 49b02f21..205a72b3 100644
--- a/sgx_libc/src/linux/ocall/syscall.rs
+++ b/sgx_libc/src/linux/ocall/syscall.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::linux::ocall::*;
use crate::linux::*;
diff --git a/sgx_libc/src/linux/ocall/thread.rs b/sgx_libc/src/linux/ocall/thread.rs
index 0adf0a6a..bb937399 100644
--- a/sgx_libc/src/linux/ocall/thread.rs
+++ b/sgx_libc/src/linux/ocall/thread.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::linux::*;
use core::mem;
diff --git a/sgx_libc/src/linux/ocall/time.rs b/sgx_libc/src/linux/ocall/time.rs
index 51032adc..6414861c 100644
--- a/sgx_libc/src/linux/ocall/time.rs
+++ b/sgx_libc/src/linux/ocall/time.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::linux::*;
use core::mem;
diff --git a/sgx_libc/src/linux/pthread/mod.rs b/sgx_libc/src/linux/pthread/mod.rs
index 0e3d9627..a5de4547 100644
--- a/sgx_libc/src/linux/pthread/mod.rs
+++ b/sgx_libc/src/linux/pthread/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::linux::*;
use core::mem;
diff --git a/sgx_libc/src/linux/x86_64/mod.rs b/sgx_libc/src/linux/x86_64/mod.rs
index b3320be3..921db36c 100644
--- a/sgx_libc/src/linux/x86_64/mod.rs
+++ b/sgx_libc/src/linux/x86_64/mod.rs
@@ -13,6 +13,6 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub use sgx_oc::linux::x86_64::*;
diff --git a/sgx_libc/src/macros.rs b/sgx_libc/src/macros.rs
index e105de98..4fd5ce16 100644
--- a/sgx_libc/src/macros.rs
+++ b/sgx_libc/src/macros.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
macro_rules! cfg_if {
// match if/else chains with a final `else`
diff --git a/sgx_macros/src/lib.rs b/sgx_macros/src/lib.rs
index 0480841c..281b5ec9 100644
--- a/sgx_macros/src/lib.rs
+++ b/sgx_macros/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate proc_macro;
extern crate syn;
diff --git a/sgx_no_tstd/src/lib.rs b/sgx_no_tstd/src/lib.rs
index 683511c4..2f938cdf 100644
--- a/sgx_no_tstd/src/lib.rs
+++ b/sgx_no_tstd/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_oc/src/android/aarch64/mod.rs b/sgx_oc/src/android/aarch64/mod.rs
index 46950e2d..b248758b 100644
--- a/sgx_oc/src/android/aarch64/mod.rs
+++ b/sgx_oc/src/android/aarch64/mod.rs
@@ -13,4 +13,4 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
diff --git a/sgx_oc/src/android/mod.rs b/sgx_oc/src/android/mod.rs
index 2841c15b..a4a41b40 100644
--- a/sgx_oc/src/android/mod.rs
+++ b/sgx_oc/src/android/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
cfg_if! {
if #[cfg(target_arch = "aarch64")] {
diff --git a/sgx_oc/src/lib.rs b/sgx_oc/src/lib.rs
index c891d666..0a4ac144 100644
--- a/sgx_oc/src/lib.rs
+++ b/sgx_oc/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_oc/src/linux/edl/asyncio.rs b/sgx_oc/src/linux/edl/asyncio.rs
index 3329133d..5780e14f 100644
--- a/sgx_oc/src/linux/edl/asyncio.rs
+++ b/sgx_oc/src/linux/edl/asyncio.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::sgx_status_t;
use crate::linux::x86_64::*;
diff --git a/sgx_oc/src/linux/edl/cpuid.rs b/sgx_oc/src/linux/edl/cpuid.rs
index 6f8883f9..2f1f53d3 100644
--- a/sgx_oc/src/linux/edl/cpuid.rs
+++ b/sgx_oc/src/linux/edl/cpuid.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::sgx_status_t;
use crate::linux::x86_64::*;
diff --git a/sgx_oc/src/linux/edl/env.rs b/sgx_oc/src/linux/edl/env.rs
index 64763217..2841b0e0 100644
--- a/sgx_oc/src/linux/edl/env.rs
+++ b/sgx_oc/src/linux/edl/env.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::sgx_status_t;
use crate::linux::x86_64::*;
diff --git a/sgx_oc/src/linux/edl/fd.rs b/sgx_oc/src/linux/edl/fd.rs
index 77a1b30c..7b6f09ee 100644
--- a/sgx_oc/src/linux/edl/fd.rs
+++ b/sgx_oc/src/linux/edl/fd.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::sgx_status_t;
use crate::linux::x86_64::*;
diff --git a/sgx_oc/src/linux/edl/file.rs b/sgx_oc/src/linux/edl/file.rs
index c0d81a15..25e5080e 100644
--- a/sgx_oc/src/linux/edl/file.rs
+++ b/sgx_oc/src/linux/edl/file.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::sgx_status_t;
use crate::linux::x86_64::*;
diff --git a/sgx_oc/src/linux/edl/mem.rs b/sgx_oc/src/linux/edl/mem.rs
index 64bb10c8..ce14f721 100644
--- a/sgx_oc/src/linux/edl/mem.rs
+++ b/sgx_oc/src/linux/edl/mem.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::sgx_status_t;
use crate::linux::x86_64::*;
diff --git a/sgx_oc/src/linux/edl/mod.rs b/sgx_oc/src/linux/edl/mod.rs
index d621cf34..b2d44eee 100644
--- a/sgx_oc/src/linux/edl/mod.rs
+++ b/sgx_oc/src/linux/edl/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use sgx_types::error::SgxStatus;
diff --git a/sgx_oc/src/linux/edl/msbuf.rs b/sgx_oc/src/linux/edl/msbuf.rs
index 4b9a7967..7deba8d9 100644
--- a/sgx_oc/src/linux/edl/msbuf.rs
+++ b/sgx_oc/src/linux/edl/msbuf.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::sgx_status_t;
use crate::linux::x86_64::*;
diff --git a/sgx_oc/src/linux/edl/net.rs b/sgx_oc/src/linux/edl/net.rs
index 27981ad7..98b7c517 100644
--- a/sgx_oc/src/linux/edl/net.rs
+++ b/sgx_oc/src/linux/edl/net.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::sgx_status_t;
use crate::linux::x86_64::*;
diff --git a/sgx_oc/src/linux/edl/pipe.rs b/sgx_oc/src/linux/edl/pipe.rs
index 0cb1da35..71bf0deb 100644
--- a/sgx_oc/src/linux/edl/pipe.rs
+++ b/sgx_oc/src/linux/edl/pipe.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::sgx_status_t;
use crate::linux::x86_64::*;
diff --git a/sgx_oc/src/linux/edl/process.rs b/sgx_oc/src/linux/edl/process.rs
index c4fd2f37..61037412 100644
--- a/sgx_oc/src/linux/edl/process.rs
+++ b/sgx_oc/src/linux/edl/process.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::sgx_status_t;
use crate::linux::x86_64::*;
diff --git a/sgx_oc/src/linux/edl/socket.rs b/sgx_oc/src/linux/edl/socket.rs
index 91f5aced..47caae75 100644
--- a/sgx_oc/src/linux/edl/socket.rs
+++ b/sgx_oc/src/linux/edl/socket.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::sgx_status_t;
use crate::linux::x86_64::*;
diff --git a/sgx_oc/src/linux/edl/sys.rs b/sgx_oc/src/linux/edl/sys.rs
index 794685c2..bdf1fdc8 100644
--- a/sgx_oc/src/linux/edl/sys.rs
+++ b/sgx_oc/src/linux/edl/sys.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::sgx_status_t;
use crate::linux::x86_64::*;
diff --git a/sgx_oc/src/linux/edl/thread.rs b/sgx_oc/src/linux/edl/thread.rs
index 65dff2c7..035e50d5 100644
--- a/sgx_oc/src/linux/edl/thread.rs
+++ b/sgx_oc/src/linux/edl/thread.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::sgx_status_t;
use crate::linux::x86_64::*;
diff --git a/sgx_oc/src/linux/edl/time.rs b/sgx_oc/src/linux/edl/time.rs
index dfc41d46..0ac76647 100644
--- a/sgx_oc/src/linux/edl/time.rs
+++ b/sgx_oc/src/linux/edl/time.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::sgx_status_t;
use crate::linux::x86_64::*;
diff --git a/sgx_oc/src/linux/mod.rs b/sgx_oc/src/linux/mod.rs
index b3f9f59e..6a5c09c4 100644
--- a/sgx_oc/src/linux/mod.rs
+++ b/sgx_oc/src/linux/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::mem;
diff --git a/sgx_oc/src/linux/ocall/asyncio.rs b/sgx_oc/src/linux/ocall/asyncio.rs
index d100de49..e4860eba 100644
--- a/sgx_oc/src/linux/ocall/asyncio.rs
+++ b/sgx_oc/src/linux/ocall/asyncio.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use core::mem;
diff --git a/sgx_oc/src/linux/ocall/cpuid.rs b/sgx_oc/src/linux/ocall/cpuid.rs
index 4ed98272..86496ab3 100644
--- a/sgx_oc/src/linux/ocall/cpuid.rs
+++ b/sgx_oc/src/linux/ocall/cpuid.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use sgx_types::marker::ContiguousMemory;
diff --git a/sgx_oc/src/linux/ocall/env.rs b/sgx_oc/src/linux/ocall/env.rs
index 87257552..31e2126c 100644
--- a/sgx_oc/src/linux/ocall/env.rs
+++ b/sgx_oc/src/linux/ocall/env.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use alloc::boxed::Box;
diff --git a/sgx_oc/src/linux/ocall/fd.rs b/sgx_oc/src/linux/ocall/fd.rs
index c09049ee..e387cd32 100644
--- a/sgx_oc/src/linux/ocall/fd.rs
+++ b/sgx_oc/src/linux/ocall/fd.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use core::cmp;
diff --git a/sgx_oc/src/linux/ocall/file.rs b/sgx_oc/src/linux/ocall/file.rs
index c87c51fa..7e37ec7c 100644
--- a/sgx_oc/src/linux/ocall/file.rs
+++ b/sgx_oc/src/linux/ocall/file.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use core::ptr;
diff --git a/sgx_oc/src/linux/ocall/hostbuf.rs b/sgx_oc/src/linux/ocall/hostbuf.rs
index 39c40f98..148e0553 100644
--- a/sgx_oc/src/linux/ocall/hostbuf.rs
+++ b/sgx_oc/src/linux/ocall/hostbuf.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use core::convert::From;
diff --git a/sgx_oc/src/linux/ocall/mem.rs b/sgx_oc/src/linux/ocall/mem.rs
index dee68f2c..13b0e98a 100644
--- a/sgx_oc/src/linux/ocall/mem.rs
+++ b/sgx_oc/src/linux/ocall/mem.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use core::alloc::{AllocError, Allocator, Layout};
diff --git a/sgx_oc/src/linux/ocall/mod.rs b/sgx_oc/src/linux/ocall/mod.rs
index e450aa74..2a726bf0 100644
--- a/sgx_oc/src/linux/ocall/mod.rs
+++ b/sgx_oc/src/linux/ocall/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::alloc::borrow::ToOwned;
use crate::linux::x86_64::*;
diff --git a/sgx_oc/src/linux/ocall/msbuf.rs b/sgx_oc/src/linux/ocall/msbuf.rs
index 626b6a75..72d4ace0 100644
--- a/sgx_oc/src/linux/ocall/msbuf.rs
+++ b/sgx_oc/src/linux/ocall/msbuf.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use core::cmp;
diff --git a/sgx_oc/src/linux/ocall/net.rs b/sgx_oc/src/linux/ocall/net.rs
index d4f11a3c..cfb758ea 100644
--- a/sgx_oc/src/linux/ocall/net.rs
+++ b/sgx_oc/src/linux/ocall/net.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use alloc::vec::Vec;
diff --git a/sgx_oc/src/linux/ocall/pipe.rs b/sgx_oc/src/linux/ocall/pipe.rs
index 2d98c2a7..fb970525 100644
--- a/sgx_oc/src/linux/ocall/pipe.rs
+++ b/sgx_oc/src/linux/ocall/pipe.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_oc/src/linux/ocall/process.rs b/sgx_oc/src/linux/ocall/process.rs
index a070d6a7..82a36ff3 100644
--- a/sgx_oc/src/linux/ocall/process.rs
+++ b/sgx_oc/src/linux/ocall/process.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_oc/src/linux/ocall/socket.rs b/sgx_oc/src/linux/ocall/socket.rs
index 5f9d23f7..e4c0c9ad 100644
--- a/sgx_oc/src/linux/ocall/socket.rs
+++ b/sgx_oc/src/linux/ocall/socket.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use core::convert::From;
diff --git a/sgx_oc/src/linux/ocall/socket_msg.rs b/sgx_oc/src/linux/ocall/socket_msg.rs
index 81362ef6..9793c44d 100644
--- a/sgx_oc/src/linux/ocall/socket_msg.rs
+++ b/sgx_oc/src/linux/ocall/socket_msg.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use core::cmp;
diff --git a/sgx_oc/src/linux/ocall/sys.rs b/sgx_oc/src/linux/ocall/sys.rs
index e3d578e3..12d77175 100644
--- a/sgx_oc/src/linux/ocall/sys.rs
+++ b/sgx_oc/src/linux/ocall/sys.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use core::mem;
diff --git a/sgx_oc/src/linux/ocall/thread.rs b/sgx_oc/src/linux/ocall/thread.rs
index 183b446b..98bed602 100644
--- a/sgx_oc/src/linux/ocall/thread.rs
+++ b/sgx_oc/src/linux/ocall/thread.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_oc/src/linux/ocall/time.rs b/sgx_oc/src/linux/ocall/time.rs
index 8d02cda1..04b5a821 100644
--- a/sgx_oc/src/linux/ocall/time.rs
+++ b/sgx_oc/src/linux/ocall/time.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_oc/src/linux/x86_64/mod.rs b/sgx_oc/src/linux/x86_64/mod.rs
index 3d88e8ec..da39123f 100644
--- a/sgx_oc/src/linux/x86_64/mod.rs
+++ b/sgx_oc/src/linux/x86_64/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub use sgx_types::error::errno::*;
pub use sgx_types::types::time_t;
diff --git a/sgx_oc/src/macros.rs b/sgx_oc/src/macros.rs
index 1808b9ae..72e3fbdf 100644
--- a/sgx_oc/src/macros.rs
+++ b/sgx_oc/src/macros.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
macro_rules! cfg_if {
// match if/else chains with a final `else`
diff --git a/sgx_protected_fs/tfs/src/capi.rs b/sgx_protected_fs/tfs/src/capi.rs
index 70f90c7e..50ad765c 100644
--- a/sgx_protected_fs/tfs/src/capi.rs
+++ b/sgx_protected_fs/tfs/src/capi.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::error::FsResult;
use crate::sys::{self as fs_imp, EncryptMode, OpenOptions, RawProtectedFile, SgxFile};
diff --git a/sgx_protected_fs/tfs/src/fs.rs b/sgx_protected_fs/tfs/src/fs.rs
index bce162af..a0fb4179 100644
--- a/sgx_protected_fs/tfs/src/fs.rs
+++ b/sgx_protected_fs/tfs/src/fs.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys as fs_imp;
use sgx_types::types::{Key128bit, Mac128bit};
diff --git a/sgx_protected_fs/tfs/src/lib.rs b/sgx_protected_fs/tfs/src/lib.rs
index 7a5d45c0..82089816 100644
--- a/sgx_protected_fs/tfs/src/lib.rs
+++ b/sgx_protected_fs/tfs/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![cfg_attr(all(feature = "tfs", not(target_vendor = "teaclave")), no_std)]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_protected_fs/tfs/src/sys/cache/list.rs b/sgx_protected_fs/tfs/src/sys/cache/list.rs
index 21f3e0a4..cae8a4d4 100644
--- a/sgx_protected_fs/tfs/src/sys/cache/list.rs
+++ b/sgx_protected_fs/tfs/src/sys/cache/list.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::boxed::Box;
use std::cmp::Ordering;
diff --git a/sgx_protected_fs/tfs/src/sys/cache/mod.rs b/sgx_protected_fs/tfs/src/sys/cache/mod.rs
index 6e06eb82..dbaf881f 100644
--- a/sgx_protected_fs/tfs/src/sys/cache/mod.rs
+++ b/sgx_protected_fs/tfs/src/sys/cache/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(dead_code)]
diff --git a/sgx_protected_fs/tfs/src/sys/error.rs b/sgx_protected_fs/tfs/src/sys/error.rs
index 6ee72820..00b7510c 100644
--- a/sgx_protected_fs/tfs/src/sys/error.rs
+++ b/sgx_protected_fs/tfs/src/sys/error.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use sgx_types::error::SgxStatus;
use std::error::Error;
diff --git a/sgx_protected_fs/tfs/src/sys/file/close.rs b/sgx_protected_fs/tfs/src/sys/file/close.rs
index fe1d9144..fffd7a54 100644
--- a/sgx_protected_fs/tfs/src/sys/file/close.rs
+++ b/sgx_protected_fs/tfs/src/sys/file/close.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::error::FsResult;
use crate::sys::file::{CloseMode, FileInner, FileStatus};
diff --git a/sgx_protected_fs/tfs/src/sys/file/flush.rs b/sgx_protected_fs/tfs/src/sys/file/flush.rs
index 8b47e523..0ad3b8ab 100644
--- a/sgx_protected_fs/tfs/src/sys/file/flush.rs
+++ b/sgx_protected_fs/tfs/src/sys/file/flush.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::error::FsResult;
use crate::sys::file::{FileInner, FileStatus};
diff --git a/sgx_protected_fs/tfs/src/sys/file/mod.rs b/sgx_protected_fs/tfs/src/sys/file/mod.rs
index 9d9ba9cc..83cf7ccd 100644
--- a/sgx_protected_fs/tfs/src/sys/file/mod.rs
+++ b/sgx_protected_fs/tfs/src/sys/file/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::cache::LruCache;
use crate::sys::error::{FsError, FsResult};
diff --git a/sgx_protected_fs/tfs/src/sys/file/node.rs b/sgx_protected_fs/tfs/src/sys/file/node.rs
index 24ad03c4..1dd815f8 100644
--- a/sgx_protected_fs/tfs/src/sys/file/node.rs
+++ b/sgx_protected_fs/tfs/src/sys/file/node.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::error::FsResult;
use crate::sys::file::{FileInner, FileStatus};
diff --git a/sgx_protected_fs/tfs/src/sys/file/open.rs b/sgx_protected_fs/tfs/src/sys/file/open.rs
index 4b398719..f54e8730 100644
--- a/sgx_protected_fs/tfs/src/sys/file/open.rs
+++ b/sgx_protected_fs/tfs/src/sys/file/open.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::cache::LruCache;
use crate::sys::error::FsResult;
diff --git a/sgx_protected_fs/tfs/src/sys/file/other.rs b/sgx_protected_fs/tfs/src/sys/file/other.rs
index 2e2fa918..8e2ea894 100644
--- a/sgx_protected_fs/tfs/src/sys/file/other.rs
+++ b/sgx_protected_fs/tfs/src/sys/file/other.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::error::{FsError, FsResult};
use crate::sys::file::{FileInner, FileStatus};
diff --git a/sgx_protected_fs/tfs/src/sys/file/read.rs b/sgx_protected_fs/tfs/src/sys/file/read.rs
index d3b9b7c5..3b6011ea 100644
--- a/sgx_protected_fs/tfs/src/sys/file/read.rs
+++ b/sgx_protected_fs/tfs/src/sys/file/read.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::error::FsResult;
use crate::sys::file::FileInner;
diff --git a/sgx_protected_fs/tfs/src/sys/file/write.rs b/sgx_protected_fs/tfs/src/sys/file/write.rs
index d35c1e5b..6ac76de5 100644
--- a/sgx_protected_fs/tfs/src/sys/file/write.rs
+++ b/sgx_protected_fs/tfs/src/sys/file/write.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::error::FsResult;
use crate::sys::file::FileInner;
diff --git a/sgx_protected_fs/tfs/src/sys/host/mod.rs b/sgx_protected_fs/tfs/src/sys/host/mod.rs
index b85b7eaf..9303257d 100644
--- a/sgx_protected_fs/tfs/src/sys/host/mod.rs
+++ b/sgx_protected_fs/tfs/src/sys/host/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::error::FsResult;
diff --git a/sgx_protected_fs/tfs/src/sys/host/ocall.rs b/sgx_protected_fs/tfs/src/sys/host/ocall.rs
index 3bb2607e..4ea6bb88 100644
--- a/sgx_protected_fs/tfs/src/sys/host/ocall.rs
+++ b/sgx_protected_fs/tfs/src/sys/host/ocall.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::HostFs;
use crate::sys::error::FsResult;
diff --git a/sgx_protected_fs/tfs/src/sys/host/ufs.rs b/sgx_protected_fs/tfs/src/sys/host/ufs.rs
index d069c169..f5f3ac67 100644
--- a/sgx_protected_fs/tfs/src/sys/host/ufs.rs
+++ b/sgx_protected_fs/tfs/src/sys/host/ufs.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::HostFs;
use crate::sys::error::FsResult;
diff --git a/sgx_protected_fs/tfs/src/sys/keys.rs b/sgx_protected_fs/tfs/src/sys/keys.rs
index fa17e453..22c18a53 100644
--- a/sgx_protected_fs/tfs/src/sys/keys.rs
+++ b/sgx_protected_fs/tfs/src/sys/keys.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::error::FsResult;
use crate::sys::file::OpenMode;
diff --git a/sgx_protected_fs/tfs/src/sys/metadata.rs b/sgx_protected_fs/tfs/src/sys/metadata.rs
index 01976539..79cb1d16 100644
--- a/sgx_protected_fs/tfs/src/sys/metadata.rs
+++ b/sgx_protected_fs/tfs/src/sys/metadata.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::error::FsResult;
use crate::sys::file::OpenMode;
diff --git a/sgx_protected_fs/tfs/src/sys/mod.rs b/sgx_protected_fs/tfs/src/sys/mod.rs
index 19517eae..593114ad 100644
--- a/sgx_protected_fs/tfs/src/sys/mod.rs
+++ b/sgx_protected_fs/tfs/src/sys/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::error::FsError;
use crate::sys::file::{self as file_imp, ProtectedFile};
diff --git a/sgx_protected_fs/tfs/src/sys/node.rs b/sgx_protected_fs/tfs/src/sys/node.rs
index 853e5292..9ae8e1bf 100644
--- a/sgx_protected_fs/tfs/src/sys/node.rs
+++ b/sgx_protected_fs/tfs/src/sys/node.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::arc_with_non_send_sync)]
diff --git a/sgx_protected_fs/ufs/src/lib.rs b/sgx_protected_fs/ufs/src/lib.rs
index 4e304f01..f8ed28a6 100644
--- a/sgx_protected_fs/ufs/src/lib.rs
+++ b/sgx_protected_fs/ufs/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[macro_use]
extern crate sgx_types;
diff --git a/sgx_rand/derive/src/lib.rs b/sgx_rand/derive/src/lib.rs
index d8c154d5..458f49cd 100644
--- a/sgx_rand/derive/src/lib.rs
+++ b/sgx_rand/derive/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Support for `#[derive(Rand)]`
//!
diff --git a/sgx_rand/src/chacha.rs b/sgx_rand/src/chacha.rs
index 8c86b4fa..7fe1f703 100644
--- a/sgx_rand/src/chacha.rs
+++ b/sgx_rand/src/chacha.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! The ChaCha random number generator.
diff --git a/sgx_rand/src/distributions/exponential.rs b/sgx_rand/src/distributions/exponential.rs
index cccffaac..7f262edf 100644
--- a/sgx_rand/src/distributions/exponential.rs
+++ b/sgx_rand/src/distributions/exponential.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! The exponential distribution.
diff --git a/sgx_rand/src/distributions/gamma.rs b/sgx_rand/src/distributions/gamma.rs
index 07d0a810..f94d9828 100644
--- a/sgx_rand/src/distributions/gamma.rs
+++ b/sgx_rand/src/distributions/gamma.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! The Gamma and derived distributions.
diff --git a/sgx_rand/src/distributions/mod.rs b/sgx_rand/src/distributions/mod.rs
index dc55ee70..f8661ff1 100644
--- a/sgx_rand/src/distributions/mod.rs
+++ b/sgx_rand/src/distributions/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Sampling from random distributions.
//!
diff --git a/sgx_rand/src/distributions/range.rs b/sgx_rand/src/distributions/range.rs
index cc3f1c7a..3cc7dbc1 100644
--- a/sgx_rand/src/distributions/range.rs
+++ b/sgx_rand/src/distributions/range.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Generating numbers between two others.
diff --git a/sgx_rand/src/distributions/ziggurat_tables.rs b/sgx_rand/src/distributions/ziggurat_tables.rs
index e8c20274..e6f22763 100644
--- a/sgx_rand/src/distributions/ziggurat_tables.rs
+++ b/sgx_rand/src/distributions/ziggurat_tables.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::excessive_precision)]
diff --git a/sgx_rand/src/isaac.rs b/sgx_rand/src/isaac.rs
index 13c5d4f2..86c72bbb 100644
--- a/sgx_rand/src/isaac.rs
+++ b/sgx_rand/src/isaac.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! The ISAAC random number generator.
diff --git a/sgx_rand/src/lib.rs b/sgx_rand/src/lib.rs
index 9ed62063..ea2a41c6 100644
--- a/sgx_rand/src/lib.rs
+++ b/sgx_rand/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Utilities for random number generation
diff --git a/sgx_rand/src/os.rs b/sgx_rand/src/os.rs
index 200a2cb0..0ed2ef77 100644
--- a/sgx_rand/src/os.rs
+++ b/sgx_rand/src/os.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Interfaces to the operating system provided random number
//! generators.
diff --git a/sgx_rand/src/rand_impls.rs b/sgx_rand/src/rand_impls.rs
index 10019cb3..aef92dd4 100644
--- a/sgx_rand/src/rand_impls.rs
+++ b/sgx_rand/src/rand_impls.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! The implementations of `Rand` for the built-in types.
diff --git a/sgx_rand/src/read.rs b/sgx_rand/src/read.rs
index d7308045..c6a1f6bf 100644
--- a/sgx_rand/src/read.rs
+++ b/sgx_rand/src/read.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! A wrapper around any Read to treat it as an RNG.
diff --git a/sgx_rand/src/reseeding.rs b/sgx_rand/src/reseeding.rs
index 34088c42..8b9c912c 100644
--- a/sgx_rand/src/reseeding.rs
+++ b/sgx_rand/src/reseeding.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! A wrapper around another RNG that reseeds it after it
//! generates a certain number of random bytes.
diff --git a/sgx_rsrvmm/src/alloc.rs b/sgx_rsrvmm/src/alloc.rs
index 8d64ab45..4413aff6 100644
--- a/sgx_rsrvmm/src/alloc.rs
+++ b/sgx_rsrvmm/src/alloc.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::rsrvmm::manager::MmAllocAddr;
use crate::rsrvmm::RsrvMem;
diff --git a/sgx_rsrvmm/src/capi.rs b/sgx_rsrvmm/src/capi.rs
index a81b1005..7c3521fc 100644
--- a/sgx_rsrvmm/src/capi.rs
+++ b/sgx_rsrvmm/src/capi.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::rsrvmm::manager::MmAllocAddr;
use crate::rsrvmm::RsrvMem;
diff --git a/sgx_rsrvmm/src/lib.rs b/sgx_rsrvmm/src/lib.rs
index 3f60fb0e..b6253dbf 100644
--- a/sgx_rsrvmm/src/lib.rs
+++ b/sgx_rsrvmm/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_rsrvmm/src/map.rs b/sgx_rsrvmm/src/map.rs
index 6a6ffedc..5362e5ce 100644
--- a/sgx_rsrvmm/src/map.rs
+++ b/sgx_rsrvmm/src/map.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::rsrvmm::RsrvMem;
use alloc_crate::sync::Arc;
diff --git a/sgx_rsrvmm/src/rsrvmm/area.rs b/sgx_rsrvmm/src/rsrvmm/area.rs
index bb74c934..a9f5648f 100644
--- a/sgx_rsrvmm/src/rsrvmm/area.rs
+++ b/sgx_rsrvmm/src/rsrvmm/area.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::map::{Map, MapObject};
use crate::rsrvmm::range::MmRange;
diff --git a/sgx_rsrvmm/src/rsrvmm/manager.rs b/sgx_rsrvmm/src/rsrvmm/manager.rs
index 656bd7a3..dc491e20 100644
--- a/sgx_rsrvmm/src/rsrvmm/manager.rs
+++ b/sgx_rsrvmm/src/rsrvmm/manager.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::map::{MapAddr, Nothing};
use crate::rsrvmm::area::{MmArea, MmPerm, MmState, MmType};
diff --git a/sgx_rsrvmm/src/rsrvmm/mod.rs b/sgx_rsrvmm/src/rsrvmm/mod.rs
index dbae758a..a2fdcad2 100644
--- a/sgx_rsrvmm/src/rsrvmm/mod.rs
+++ b/sgx_rsrvmm/src/rsrvmm/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use self::area::{MmArea, MmPerm, MmState, MmType};
use self::manager::{MmAllocAddr, MmManager};
diff --git a/sgx_rsrvmm/src/rsrvmm/range.rs b/sgx_rsrvmm/src/rsrvmm/range.rs
index 9836f1a6..c14dc4a8 100644
--- a/sgx_rsrvmm/src/rsrvmm/range.rs
+++ b/sgx_rsrvmm/src/rsrvmm/range.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use alloc_crate::vec::Vec;
use core::fmt;
diff --git a/sgx_serialize/derive/src/bound.rs b/sgx_serialize/derive/src/bound.rs
index f8ff30b9..ed62a447 100644
--- a/sgx_serialize/derive/src/bound.rs
+++ b/sgx_serialize/derive/src/bound.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use syn::{self};
diff --git a/sgx_serialize/derive/src/decode.rs b/sgx_serialize/derive/src/decode.rs
index ad26a52a..d21ff74e 100644
--- a/sgx_serialize/derive/src/decode.rs
+++ b/sgx_serialize/derive/src/decode.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//!
//! The mod implements the function of Decodable.
diff --git a/sgx_serialize/derive/src/encode.rs b/sgx_serialize/derive/src/encode.rs
index e9e36865..e91358fb 100644
--- a/sgx_serialize/derive/src/encode.rs
+++ b/sgx_serialize/derive/src/encode.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//!
//! The mod implements the function of Encodable.
diff --git a/sgx_serialize/derive/src/fragment.rs b/sgx_serialize/derive/src/fragment.rs
index 9fdf9dd2..e6a54688 100644
--- a/sgx_serialize/derive/src/fragment.rs
+++ b/sgx_serialize/derive/src/fragment.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use quote::{ToTokens, Tokens};
diff --git a/sgx_serialize/derive/src/internals/ast.rs b/sgx_serialize/derive/src/internals/ast.rs
index 96328884..1dc1c82b 100644
--- a/sgx_serialize/derive/src/internals/ast.rs
+++ b/sgx_serialize/derive/src/internals/ast.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::Ctxt;
diff --git a/sgx_serialize/derive/src/internals/ctxt.rs b/sgx_serialize/derive/src/internals/ctxt.rs
index 3f9daefa..b6f5ab22 100644
--- a/sgx_serialize/derive/src/internals/ctxt.rs
+++ b/sgx_serialize/derive/src/internals/ctxt.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::cell::RefCell;
use std::fmt::Display;
diff --git a/sgx_serialize/derive/src/internals/mod.rs b/sgx_serialize/derive/src/internals/mod.rs
index f21b7144..8c364952 100644
--- a/sgx_serialize/derive/src/internals/mod.rs
+++ b/sgx_serialize/derive/src/internals/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//!
//! It's helpful for parsing the structure and fields of struct and enum.
diff --git a/sgx_serialize/derive/src/lib.rs b/sgx_serialize/derive/src/lib.rs
index f305154c..7a61eee1 100644
--- a/sgx_serialize/derive/src/lib.rs
+++ b/sgx_serialize/derive/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! This crate provides sgx_serialize's two derive macros.
//!
diff --git a/sgx_serialize/derive/src/param.rs b/sgx_serialize/derive/src/param.rs
index 70ef8d5b..f99991dd 100644
--- a/sgx_serialize/derive/src/param.rs
+++ b/sgx_serialize/derive/src/param.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::bound;
use crate::internals::ast::Container;
diff --git a/sgx_serialize/src/collection.rs b/sgx_serialize/src/collection.rs
index f87dd3fa..d1b7d1ae 100644
--- a/sgx_serialize/src/collection.rs
+++ b/sgx_serialize/src/collection.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Implementations of serialization for structures found in liballoc
diff --git a/sgx_serialize/src/json.rs b/sgx_serialize/src/json.rs
index bb1ca227..536c7c4b 100644
--- a/sgx_serialize/src/json.rs
+++ b/sgx_serialize/src/json.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![forbid(non_camel_case_types)]
#![allow(missing_docs)]
diff --git a/sgx_serialize/src/leb128.rs b/sgx_serialize/src/leb128.rs
index 1bd1d25f..163efb96 100644
--- a/sgx_serialize/src/leb128.rs
+++ b/sgx_serialize/src/leb128.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![macro_use]
diff --git a/sgx_serialize/src/lib.rs b/sgx_serialize/src/lib.rs
index ff97eef0..a2f442d4 100644
--- a/sgx_serialize/src/lib.rs
+++ b/sgx_serialize/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Support code for encoding and decoding types.
diff --git a/sgx_serialize/src/opaque.rs b/sgx_serialize/src/opaque.rs
index 910f2714..0e92f9c5 100644
--- a/sgx_serialize/src/opaque.rs
+++ b/sgx_serialize/src/opaque.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//!
//! The mod opaque Encoder and Decoder container to save buffer of target types
diff --git a/sgx_serialize/src/serialize.rs b/sgx_serialize/src/serialize.rs
index caf211d7..516eecce 100644
--- a/sgx_serialize/src/serialize.rs
+++ b/sgx_serialize/src/serialize.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
// Support code for encoding and decoding types.
/*
diff --git a/sgx_serialize/src/types.rs b/sgx_serialize/src/types.rs
index 9a417616..e0aa084a 100644
--- a/sgx_serialize/src/types.rs
+++ b/sgx_serialize/src/types.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::{Decodable, Decoder, Encodable, Encoder};
use sgx_types::types::EnclaveIdentity;
diff --git a/sgx_sync/src/barrier.rs b/sgx_sync/src/barrier.rs
index d92d1280..14fd3af3 100644
--- a/sgx_sync/src/barrier.rs
+++ b/sgx_sync/src/barrier.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::spin::SpinMutex;
use core::fmt;
diff --git a/sgx_sync/src/capi.rs b/sgx_sync/src/capi.rs
index 82b70051..704718ed 100644
--- a/sgx_sync/src/capi.rs
+++ b/sgx_sync/src/capi.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::spin::SpinMutex;
use crate::sys::locks::generic::condvar::Condvar;
diff --git a/sgx_sync/src/condvar.rs b/sgx_sync/src/condvar.rs
index e6a3da3b..6aa34816 100644
--- a/sgx_sync/src/condvar.rs
+++ b/sgx_sync/src/condvar.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::mutex::MovableMutex;
use crate::sys::locks::condvar as imp;
diff --git a/sgx_sync/src/condvar/check.rs b/sgx_sync/src/condvar/check.rs
index 69097602..873cea39 100644
--- a/sgx_sync/src/condvar/check.rs
+++ b/sgx_sync/src/condvar/check.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::lazy_box::{LazyBox, LazyInit};
use crate::sys::locks::futex;
use crate::sys::locks::generic;
diff --git a/sgx_sync/src/futex.rs b/sgx_sync/src/futex.rs
index 06434510..e6eaa2e1 100644
--- a/sgx_sync/src/futex.rs
+++ b/sgx_sync/src/futex.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::futex as imp;
use crate::Timespec;
diff --git a/sgx_sync/src/lazy_lock.rs b/sgx_sync/src/lazy_lock.rs
index bbdffe6a..9a65b6c6 100644
--- a/sgx_sync/src/lazy_lock.rs
+++ b/sgx_sync/src/lazy_lock.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::once_lock::OnceLock;
use core::cell::Cell;
diff --git a/sgx_sync/src/lib.rs b/sgx_sync/src/lib.rs
index c86ec359..69b40f29 100644
--- a/sgx_sync/src/lib.rs
+++ b/sgx_sync/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_sync/src/lock_api.rs b/sgx_sync/src/lock_api.rs
index f1715f91..7d4cf959 100644
--- a/sgx_sync/src/lock_api.rs
+++ b/sgx_sync/src/lock_api.rs
@@ -13,6 +13,6 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub use sgx_trts::sync::{RawMutex, RawRwLock};
diff --git a/sgx_sync/src/mutex.rs b/sgx_sync/src/mutex.rs
index ea8fee1d..d3643d74 100644
--- a/sgx_sync/src/mutex.rs
+++ b/sgx_sync/src/mutex.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::lock_api::RawMutex;
use crate::sys::locks::mutex as imp;
diff --git a/sgx_sync/src/once.rs b/sgx_sync/src/once.rs
index 65fd22f2..5c384ed7 100644
--- a/sgx_sync/src/once.rs
+++ b/sgx_sync/src/once.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::cell::Cell;
use core::fmt;
diff --git a/sgx_sync/src/once_lock.rs b/sgx_sync/src/once_lock.rs
index bd54de13..aec02553 100644
--- a/sgx_sync/src/once_lock.rs
+++ b/sgx_sync/src/once_lock.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::once::Once;
use core::cell::UnsafeCell;
diff --git a/sgx_sync/src/remutex/generic.rs b/sgx_sync/src/remutex/generic.rs
index e6d33786..82dea581 100644
--- a/sgx_sync/src/remutex/generic.rs
+++ b/sgx_sync/src/remutex/generic.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::mutex as sys;
use core::cell::UnsafeCell;
diff --git a/sgx_sync/src/remutex/legacy.rs b/sgx_sync/src/remutex/legacy.rs
index 275a9a8b..5a835054 100644
--- a/sgx_sync/src/remutex/legacy.rs
+++ b/sgx_sync/src/remutex/legacy.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::locks::generic::mutex as sys;
use core::fmt;
diff --git a/sgx_sync/src/remutex/mod.rs b/sgx_sync/src/remutex/mod.rs
index babdd013..df1c29fb 100644
--- a/sgx_sync/src/remutex/mod.rs
+++ b/sgx_sync/src/remutex/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod generic;
pub use generic::{ReentrantMutex, ReentrantMutexGuard};
diff --git a/sgx_sync/src/rwlock.rs b/sgx_sync/src/rwlock.rs
index 7782585a..de026d3b 100644
--- a/sgx_sync/src/rwlock.rs
+++ b/sgx_sync/src/rwlock.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::lock_api::RawRwLock;
use crate::sys::locks::rwlock as imp;
diff --git a/sgx_sync/src/spin.rs b/sgx_sync/src/spin.rs
index 3400062b..2b61b42b 100644
--- a/sgx_sync/src/spin.rs
+++ b/sgx_sync/src/spin.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub use sgx_trts::sync::{
SpinMutex, SpinMutexGuard, SpinRwLock, SpinRwLockReadGuard, SpinRwLockWriteGuard,
diff --git a/sgx_sync/src/sys/futex.rs b/sgx_sync/src/sys/futex.rs
index 119d4ec6..b06fbb33 100644
--- a/sgx_sync/src/sys/futex.rs
+++ b/sgx_sync/src/sys/futex.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(deprecated)]
diff --git a/sgx_sync/src/sys/lazy_box.rs b/sgx_sync/src/sys/lazy_box.rs
index c26e21f7..45682c9a 100644
--- a/sgx_sync/src/sys/lazy_box.rs
+++ b/sgx_sync/src/sys/lazy_box.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(dead_code)] // Only used on some platforms.
diff --git a/sgx_sync/src/sys/locks/futex/condvar.rs b/sgx_sync/src/sys/locks/futex/condvar.rs
index 5858bd88..77ac76db 100644
--- a/sgx_sync/src/sys/locks/futex/condvar.rs
+++ b/sgx_sync/src/sys/locks/futex/condvar.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::mutex::Mutex;
use super::wait::{futex_wait, futex_wake, futex_wake_all};
diff --git a/sgx_sync/src/sys/locks/futex/mod.rs b/sgx_sync/src/sys/locks/futex/mod.rs
index 60c09347..1d66ac2e 100644
--- a/sgx_sync/src/sys/locks/futex/mod.rs
+++ b/sgx_sync/src/sys/locks/futex/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod wait;
diff --git a/sgx_sync/src/sys/locks/futex/mutex.rs b/sgx_sync/src/sys/locks/futex/mutex.rs
index 7caa5b6b..dbd6e0c5 100644
--- a/sgx_sync/src/sys/locks/futex/mutex.rs
+++ b/sgx_sync/src/sys/locks/futex/mutex.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::wait::{futex_wait, futex_wake};
use core::sync::atomic::{
diff --git a/sgx_sync/src/sys/locks/futex/rwlock.rs b/sgx_sync/src/sys/locks/futex/rwlock.rs
index 654d3744..14eac0a1 100644
--- a/sgx_sync/src/sys/locks/futex/rwlock.rs
+++ b/sgx_sync/src/sys/locks/futex/rwlock.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::wait::{futex_wait, futex_wake, futex_wake_all};
use core::sync::atomic::{
diff --git a/sgx_sync/src/sys/locks/futex/wait.rs b/sgx_sync/src/sys/locks/futex/wait.rs
index 5255e35d..65fa82fa 100644
--- a/sgx_sync/src/sys/locks/futex/wait.rs
+++ b/sgx_sync/src/sys/locks/futex/wait.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::futex::Futex;
use core::sync::atomic::AtomicU32;
diff --git a/sgx_sync/src/sys/locks/generic/condvar.rs b/sgx_sync/src/sys/locks/generic/condvar.rs
index c60c94d5..73edf51f 100644
--- a/sgx_sync/src/sys/locks/generic/condvar.rs
+++ b/sgx_sync/src/sys/locks/generic/condvar.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::mutex::Mutex;
use crate::sys::lazy_box::{LazyBox, LazyInit};
diff --git a/sgx_sync/src/sys/locks/generic/mod.rs b/sgx_sync/src/sys/locks/generic/mod.rs
index bf1bab89..aa46bf60 100644
--- a/sgx_sync/src/sys/locks/generic/mod.rs
+++ b/sgx_sync/src/sys/locks/generic/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub mod condvar;
pub mod mutex;
diff --git a/sgx_sync/src/sys/locks/generic/mutex.rs b/sgx_sync/src/sys/locks/generic/mutex.rs
index 4aed9dc4..658fe622 100644
--- a/sgx_sync/src/sys/locks/generic/mutex.rs
+++ b/sgx_sync/src/sys/locks/generic/mutex.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::lazy_box::{LazyBox, LazyInit};
use crate::sys::ocall;
diff --git a/sgx_sync/src/sys/locks/generic/rwlock.rs b/sgx_sync/src/sys/locks/generic/rwlock.rs
index d97c5066..40d09a5f 100644
--- a/sgx_sync/src/sys/locks/generic/rwlock.rs
+++ b/sgx_sync/src/sys/locks/generic/rwlock.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::lazy_box::{LazyBox, LazyInit};
use crate::sys::ocall;
diff --git a/sgx_sync/src/sys/locks/mod.rs b/sgx_sync/src/sys/locks/mod.rs
index 2b0be11d..05716f97 100644
--- a/sgx_sync/src/sys/locks/mod.rs
+++ b/sgx_sync/src/sys/locks/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub mod futex;
pub mod generic;
diff --git a/sgx_sync/src/sys/mod.rs b/sgx_sync/src/sys/mod.rs
index ee5e8e1e..d152eb2a 100644
--- a/sgx_sync/src/sys/mod.rs
+++ b/sgx_sync/src/sys/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub mod futex;
pub mod lazy_box;
diff --git a/sgx_sync/src/sys/ocall/mod.rs b/sgx_sync/src/sys/ocall/mod.rs
index 09a5f001..c027b422 100644
--- a/sgx_sync/src/sys/ocall/mod.rs
+++ b/sgx_sync/src/sys/ocall/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::cmp::{self, Ordering};
use core::convert::{From, TryFrom};
diff --git a/sgx_tdh/src/capi.rs b/sgx_tdh/src/capi.rs
index db7c1a6b..78d28b12 100644
--- a/sgx_tdh/src/capi.rs
+++ b/sgx_tdh/src/capi.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::message::{DhMsg1, DhMsg2, DhMsg3};
use crate::session::{DhResult, Initiator, Responder};
diff --git a/sgx_tdh/src/lib.rs b/sgx_tdh/src/lib.rs
index e19ee761..786a8535 100644
--- a/sgx_tdh/src/lib.rs
+++ b/sgx_tdh/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_tdh/src/message.rs b/sgx_tdh/src/message.rs
index 068c3c31..ceb55d5a 100644
--- a/sgx_tdh/src/message.rs
+++ b/sgx_tdh/src/message.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use alloc::boxed::Box;
use alloc::vec::Vec;
diff --git a/sgx_tdh/src/session/initiator.rs b/sgx_tdh/src/session/initiator.rs
index 6bb02eab..13c10304 100644
--- a/sgx_tdh/src/session/initiator.rs
+++ b/sgx_tdh/src/session/initiator.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::DhResult;
use crate::message::{DhMsg1, DhMsg2, DhMsg3};
diff --git a/sgx_tdh/src/session/mod.rs b/sgx_tdh/src/session/mod.rs
index 831680d6..fe4cf7fe 100644
--- a/sgx_tdh/src/session/mod.rs
+++ b/sgx_tdh/src/session/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use sgx_types::types::{EnclaveIdentity, Key128bit};
diff --git a/sgx_tdh/src/session/responder.rs b/sgx_tdh/src/session/responder.rs
index b6948cdf..b797a50d 100644
--- a/sgx_tdh/src/session/responder.rs
+++ b/sgx_tdh/src/session/responder.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::DhResult;
use crate::message::{DhMsg1, DhMsg2, DhMsg3};
diff --git a/sgx_tests/cov/src/lib.rs b/sgx_tests/cov/src/lib.rs
index 1f8fd66b..3c010bb8 100644
--- a/sgx_tests/cov/src/lib.rs
+++ b/sgx_tests/cov/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![cfg_attr(not(target_vendor = "teaclave"), no_std)]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_tests/unit/src/lib.rs b/sgx_tests/unit/src/lib.rs
index ffb479a1..b6432cf7 100644
--- a/sgx_tests/unit/src/lib.rs
+++ b/sgx_tests/unit/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! sgx_unit_test is for performing unit tests in enclaves.
//!
diff --git a/sgx_tests/utils/src/bench.rs b/sgx_tests/utils/src/bench.rs
index e16ba549..857d11c6 100644
--- a/sgx_tests/utils/src/bench.rs
+++ b/sgx_tests/utils/src/bench.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::stats;
use crate::time::Instant;
diff --git a/sgx_tests/utils/src/lib.rs b/sgx_tests/utils/src/lib.rs
index 8cd222a5..43c309e6 100644
--- a/sgx_tests/utils/src/lib.rs
+++ b/sgx_tests/utils/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_tests/utils/src/stats.rs b/sgx_tests/utils/src/stats.rs
index 4fb17b8a..b6cdf987 100644
--- a/sgx_tests/utils/src/stats.rs
+++ b/sgx_tests/utils/src/stats.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use alloc::vec::Vec;
use core::{intrinsics, mem};
diff --git a/sgx_tests/utils/src/time.rs b/sgx_tests/utils/src/time.rs
index e863f10d..93949aaa 100644
--- a/sgx_tests/utils/src/time.rs
+++ b/sgx_tests/utils/src/time.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::arch::x86_64::{__rdtscp, _mm_lfence, _rdtsc};
use core::time::Duration;
diff --git a/sgx_trts/build.rs b/sgx_trts/build.rs
index d17eb62e..124c93b2 100644
--- a/sgx_trts/build.rs
+++ b/sgx_trts/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/sgx_trts/src/arch.rs b/sgx_trts/src/arch.rs
index 9ccd1dae..8f5bbf15 100644
--- a/sgx_trts/src/arch.rs
+++ b/sgx_trts/src/arch.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::enum_variant_names)]
diff --git a/sgx_trts/src/asm/cet.S b/sgx_trts/src/asm/cet.S
index f00103c8..1a9f683d 100644
--- a/sgx_trts/src/asm/cet.S
+++ b/sgx_trts/src/asm/cet.S
@@ -13,7 +13,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.. */
+ under the License. */
.file "cet.S"
diff --git a/sgx_trts/src/asm/macro.S b/sgx_trts/src/asm/macro.S
index b416669d..0f6cddef 100644
--- a/sgx_trts/src/asm/macro.S
+++ b/sgx_trts/src/asm/macro.S
@@ -13,7 +13,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.. */
+ under the License. */
.file "macro.S"
diff --git a/sgx_trts/src/asm/metadata.S b/sgx_trts/src/asm/metadata.S
index c530d905..1bcb1bce 100644
--- a/sgx_trts/src/asm/metadata.S
+++ b/sgx_trts/src/asm/metadata.S
@@ -13,7 +13,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.. */
+ under the License. */
.file "metadata.S"
diff --git a/sgx_trts/src/asm/mod.rs b/sgx_trts/src/asm/mod.rs
index 5ea7afe3..529b0e0d 100644
--- a/sgx_trts/src/asm/mod.rs
+++ b/sgx_trts/src/asm/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::Align64;
use core::arch::global_asm;
diff --git a/sgx_trts/src/asm/pic.S b/sgx_trts/src/asm/pic.S
index 1be1b499..759d238c 100644
--- a/sgx_trts/src/asm/pic.S
+++ b/sgx_trts/src/asm/pic.S
@@ -13,7 +13,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.. */
+ under the License. */
.file "pic.S"
.section absolute
diff --git a/sgx_trts/src/asm/thunk.S b/sgx_trts/src/asm/thunk.S
index ab8a3c65..e7c121f2 100644
--- a/sgx_trts/src/asm/thunk.S
+++ b/sgx_trts/src/asm/thunk.S
@@ -13,7 +13,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.. */
+ under the License. */
.file "thunk.S"
diff --git a/sgx_trts/src/asm/xsave.S b/sgx_trts/src/asm/xsave.S
index 08eaac55..32bb9845 100644
--- a/sgx_trts/src/asm/xsave.S
+++ b/sgx_trts/src/asm/xsave.S
@@ -13,7 +13,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.. */
+ under the License. */
.file "xsave.S"
.section .nipd,"aw"
diff --git a/sgx_trts/src/call/ecall.rs b/sgx_trts/src/call/ecall.rs
index a5d9d10a..e02b4096 100644
--- a/sgx_trts/src/call/ecall.rs
+++ b/sgx_trts/src/call/ecall.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::{OCallContext, Tcs, TcsPolicy};
use crate::call::ocall;
diff --git a/sgx_trts/src/call/mod.rs b/sgx_trts/src/call/mod.rs
index 811c2baa..80377b85 100644
--- a/sgx_trts/src/call/mod.rs
+++ b/sgx_trts/src/call/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod ecall;
#[cfg(feature = "hyper")]
diff --git a/sgx_trts/src/call/msbuf.rs b/sgx_trts/src/call/msbuf.rs
index 22a4f543..1e6af975 100644
--- a/sgx_trts/src/call/msbuf.rs
+++ b/sgx_trts/src/call/msbuf.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::SE_PAGE_SIZE;
use crate::enclave::{is_within_enclave, is_within_host, EnclaveRange};
diff --git a/sgx_trts/src/call/ocall.rs b/sgx_trts/src/call/ocall.rs
index ea1af72f..035df1ec 100644
--- a/sgx_trts/src/call/ocall.rs
+++ b/sgx_trts/src/call/ocall.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::ecall::EntryTable;
use crate::arch::OCallContext;
diff --git a/sgx_trts/src/call/ocalloc.rs b/sgx_trts/src/call/ocalloc.rs
index 34be0448..44c6f9da 100644
--- a/sgx_trts/src/call/ocalloc.rs
+++ b/sgx_trts/src/call/ocalloc.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::alloc::{Allocator, Layout};
use core::mem::ManuallyDrop;
diff --git a/sgx_trts/src/capi.rs b/sgx_trts/src/capi.rs
index 9cf01743..fcfa52ad 100644
--- a/sgx_trts/src/capi.rs
+++ b/sgx_trts/src/capi.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::call::{ocall, OCallIndex, OcBuffer};
use crate::edmm::mem::{apply_epc_pages, trim_epc_pages};
diff --git a/sgx_trts/src/edmm/epc.rs b/sgx_trts/src/edmm/epc.rs
index 05c966ad..44b05642 100644
--- a/sgx_trts/src/edmm/epc.rs
+++ b/sgx_trts/src/edmm/epc.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::{SecInfo, SE_PAGE_SHIFT, SE_PAGE_SIZE};
use crate::enclave::is_within_enclave;
diff --git a/sgx_trts/src/edmm/layout.rs b/sgx_trts/src/edmm/layout.rs
index 55b0cbd2..0e109398 100644
--- a/sgx_trts/src/edmm/layout.rs
+++ b/sgx_trts/src/edmm/layout.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::{self, Layout};
use crate::enclave::MmLayout;
diff --git a/sgx_trts/src/edmm/mem.rs b/sgx_trts/src/edmm/mem.rs
index 2f5e1e57..02fb979f 100644
--- a/sgx_trts/src/edmm/mem.rs
+++ b/sgx_trts/src/edmm/mem.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
cfg_if! {
if #[cfg(not(any(feature = "sim", feature = "hyper")))] {
diff --git a/sgx_trts/src/edmm/mod.rs b/sgx_trts/src/edmm/mod.rs
index 420dbccb..4d06bcc6 100644
--- a/sgx_trts/src/edmm/mod.rs
+++ b/sgx_trts/src/edmm/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub(crate) mod epc;
#[cfg(not(any(feature = "sim", feature = "hyper")))]
diff --git a/sgx_trts/src/edmm/perm.rs b/sgx_trts/src/edmm/perm.rs
index 4e17e67e..0517243a 100644
--- a/sgx_trts/src/edmm/perm.rs
+++ b/sgx_trts/src/edmm/perm.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
cfg_if! {
if #[cfg(not(any(feature = "sim", feature = "hyper")))] {
diff --git a/sgx_trts/src/edmm/tcs.rs b/sgx_trts/src/edmm/tcs.rs
index 271b94e2..a59d1303 100644
--- a/sgx_trts/src/edmm/tcs.rs
+++ b/sgx_trts/src/edmm/tcs.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::Tcs;
use crate::enclave::is_within_host;
diff --git a/sgx_trts/src/edmm/trim.rs b/sgx_trts/src/edmm/trim.rs
index 6e51bd80..85ce7297 100644
--- a/sgx_trts/src/edmm/trim.rs
+++ b/sgx_trts/src/edmm/trim.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::SE_PAGE_SHIFT;
use crate::call::{ocall, OCallIndex, OcAlloc};
diff --git a/sgx_trts/src/elf/control_flow.rs b/sgx_trts/src/elf/control_flow.rs
index 887ff67d..30b3b140 100644
--- a/sgx_trts/src/elf/control_flow.rs
+++ b/sgx_trts/src/elf/control_flow.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum ControlFlow<C, B> {
diff --git a/sgx_trts/src/elf/dynamic.rs b/sgx_trts/src/elf/dynamic.rs
index 74b5002d..c6aa20f7 100644
--- a/sgx_trts/src/elf/dynamic.rs
+++ b/sgx_trts/src/elf/dynamic.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::fmt;
use sgx_types::marker::ContiguousMemory;
diff --git a/sgx_trts/src/elf/header.rs b/sgx_trts/src/elf/header.rs
index 91011fa2..28c7e7bb 100644
--- a/sgx_trts/src/elf/header.rs
+++ b/sgx_trts/src/elf/header.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::elf::slice::{self, AsSlice};
use crate::elf::zero::read;
diff --git a/sgx_trts/src/elf/mod.rs b/sgx_trts/src/elf/mod.rs
index 06a4cca4..d7f59e17 100644
--- a/sgx_trts/src/elf/mod.rs
+++ b/sgx_trts/src/elf/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::elf::header::{Header, Header64Pt2, HeaderPt1, HeaderPt2};
use crate::elf::program::{ProgramHeader, ProgramIter};
diff --git a/sgx_trts/src/elf/program.rs b/sgx_trts/src/elf/program.rs
index 8907c9f5..c8a2e05f 100644
--- a/sgx_trts/src/elf/program.rs
+++ b/sgx_trts/src/elf/program.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::elf::control_flow::ControlFlow;
use crate::elf::dynamic::Dynamic;
diff --git a/sgx_trts/src/elf/sections.rs b/sgx_trts/src/elf/sections.rs
index 1f022b90..6dd3e52e 100644
--- a/sgx_trts/src/elf/sections.rs
+++ b/sgx_trts/src/elf/sections.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::elf::dynamic::Dynamic;
use crate::elf::symtabl;
diff --git a/sgx_trts/src/elf/slice.rs b/sgx_trts/src/elf/slice.rs
index 59defb9d..576acde0 100644
--- a/sgx_trts/src/elf/slice.rs
+++ b/sgx_trts/src/elf/slice.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::intrinsics::assume;
use core::marker::PhantomData;
diff --git a/sgx_trts/src/elf/symtabl.rs b/sgx_trts/src/elf/symtabl.rs
index 1aa8097d..52144614 100644
--- a/sgx_trts/src/elf/symtabl.rs
+++ b/sgx_trts/src/elf/symtabl.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::fmt;
use core::mem;
diff --git a/sgx_trts/src/elf/zero.rs b/sgx_trts/src/elf/zero.rs
index 02c4fdeb..29a488df 100644
--- a/sgx_trts/src/elf/zero.rs
+++ b/sgx_trts/src/elf/zero.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::elf::slice::{self, AsSlice};
use crate::error;
diff --git a/sgx_trts/src/enclave/atexit.rs b/sgx_trts/src/enclave/atexit.rs
index 418e158f..f73751dd 100644
--- a/sgx_trts/src/enclave/atexit.rs
+++ b/sgx_trts/src/enclave/atexit.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::rand::Rng;
use crate::sync::SpinMutex;
diff --git a/sgx_trts/src/enclave/entry.rs b/sgx_trts/src/enclave/entry.rs
index 57fd6b18..f4250ccd 100644
--- a/sgx_trts/src/enclave/entry.rs
+++ b/sgx_trts/src/enclave/entry.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::Tcs;
use crate::call;
diff --git a/sgx_trts/src/enclave/init.rs b/sgx_trts/src/enclave/init.rs
index c2f27e5a..d320970a 100644
--- a/sgx_trts/src/enclave/init.rs
+++ b/sgx_trts/src/enclave/init.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::Tcs;
use crate::enclave::state::State;
diff --git a/sgx_trts/src/enclave/mem.rs b/sgx_trts/src/enclave/mem.rs
index 003a6b48..018c861c 100644
--- a/sgx_trts/src/enclave/mem.rs
+++ b/sgx_trts/src/enclave/mem.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch;
use crate::enclave::parse;
diff --git a/sgx_trts/src/enclave/mod.rs b/sgx_trts/src/enclave/mod.rs
index ec05e154..a6207b6c 100644
--- a/sgx_trts/src/enclave/mod.rs
+++ b/sgx_trts/src/enclave/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(unused_imports)]
diff --git a/sgx_trts/src/enclave/parse.rs b/sgx_trts/src/enclave/parse.rs
index f1fe6175..470c6b13 100644
--- a/sgx_trts/src/enclave/parse.rs
+++ b/sgx_trts/src/enclave/parse.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::elf::dynamic::Tag as DynTag;
use crate::elf::header::Type as HeaderType;
diff --git a/sgx_trts/src/enclave/state.rs b/sgx_trts/src/enclave/state.rs
index 7bfcdf4c..4c6fed3d 100644
--- a/sgx_trts/src/enclave/state.rs
+++ b/sgx_trts/src/enclave/state.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[link_section = ".nipd"]
#[no_mangle]
diff --git a/sgx_trts/src/enclave/uninit.rs b/sgx_trts/src/enclave/uninit.rs
index 78a79dcb..e9f8259c 100644
--- a/sgx_trts/src/enclave/uninit.rs
+++ b/sgx_trts/src/enclave/uninit.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::enclave::state::{self, State};
use crate::enclave::{atexit, parse};
diff --git a/sgx_trts/src/error.rs b/sgx_trts/src/error.rs
index 79b5d5cc..b93820bb 100644
--- a/sgx_trts/src/error.rs
+++ b/sgx_trts/src/error.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::Tds;
use crate::enclave::state::{self, State};
diff --git a/sgx_trts/src/feature/mod.rs b/sgx_trts/src/feature/mod.rs
index f748ea7d..7e19328b 100644
--- a/sgx_trts/src/feature/mod.rs
+++ b/sgx_trts/src/feature/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod sys;
diff --git a/sgx_trts/src/feature/sys.rs b/sgx_trts/src/feature/sys.rs
index 537b5a5b..bb19469c 100644
--- a/sgx_trts/src/feature/sys.rs
+++ b/sgx_trts/src/feature/sys.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(feature = "hyper")]
use crate::call::MsbufInfo;
diff --git a/sgx_trts/src/fence.rs b/sgx_trts/src/fence.rs
index 2f0422c9..bcba612f 100644
--- a/sgx_trts/src/fence.rs
+++ b/sgx_trts/src/fence.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(target_arch = "x86")]
use core::arch::x86::{_mm_lfence, _mm_mfence};
diff --git a/sgx_trts/src/inst/hw/enclu.S b/sgx_trts/src/inst/hw/enclu.S
index a49727fa..2c6622b5 100644
--- a/sgx_trts/src/inst/hw/enclu.S
+++ b/sgx_trts/src/inst/hw/enclu.S
@@ -13,7 +13,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.. */
+ under the License. */
.file "enclu.S"
diff --git a/sgx_trts/src/inst/hw/everifyreport.S b/sgx_trts/src/inst/hw/everifyreport.S
index 0b7ca25d..97058b3e 100644
--- a/sgx_trts/src/inst/hw/everifyreport.S
+++ b/sgx_trts/src/inst/hw/everifyreport.S
@@ -13,7 +13,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.. */
+ under the License. */
.file "everifyreport.S"
diff --git a/sgx_trts/src/inst/hw/inst.rs b/sgx_trts/src/inst/hw/inst.rs
index 69b28cec..a15845e5 100644
--- a/sgx_trts/src/inst/hw/inst.rs
+++ b/sgx_trts/src/inst/hw/inst.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::{Enclu, SecInfo};
use crate::se::{
diff --git a/sgx_trts/src/inst/hw/mod.rs b/sgx_trts/src/inst/hw/mod.rs
index fd01ada3..0a3b77c0 100644
--- a/sgx_trts/src/inst/hw/mod.rs
+++ b/sgx_trts/src/inst/hw/mod.rs
@@ -13,6 +13,6 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub mod inst;
diff --git a/sgx_trts/src/inst/hw/td.S b/sgx_trts/src/inst/hw/td.S
index 42c75015..573d7cd0 100644
--- a/sgx_trts/src/inst/hw/td.S
+++ b/sgx_trts/src/inst/hw/td.S
@@ -13,7 +13,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.. */
+ under the License. */
.file "td.S"
diff --git a/sgx_trts/src/inst/hw/xsave_mask.S b/sgx_trts/src/inst/hw/xsave_mask.S
index 87082177..6b97ab40 100644
--- a/sgx_trts/src/inst/hw/xsave_mask.S
+++ b/sgx_trts/src/inst/hw/xsave_mask.S
@@ -13,7 +13,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.. */
+ under the License. */
.file "xsave_mask.S"
diff --git a/sgx_trts/src/inst/hyper/enclu.S b/sgx_trts/src/inst/hyper/enclu.S
index fcbe7654..34f56699 100644
--- a/sgx_trts/src/inst/hyper/enclu.S
+++ b/sgx_trts/src/inst/hyper/enclu.S
@@ -13,7 +13,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.. */
+ under the License. */
.file "enclu.S"
diff --git a/sgx_trts/src/inst/hyper/inst.rs b/sgx_trts/src/inst/hyper/inst.rs
index ebff9321..206577d0 100644
--- a/sgx_trts/src/inst/hyper/inst.rs
+++ b/sgx_trts/src/inst/hyper/inst.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::enum_variant_names)]
diff --git a/sgx_trts/src/inst/hyper/mod.rs b/sgx_trts/src/inst/hyper/mod.rs
index 9d638b5f..7c4ccc0e 100644
--- a/sgx_trts/src/inst/hyper/mod.rs
+++ b/sgx_trts/src/inst/hyper/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::{Enclu, SecInfo};
use crate::call::MsbufInfo;
diff --git a/sgx_trts/src/inst/hyper/td.S b/sgx_trts/src/inst/hyper/td.S
index 42c75015..573d7cd0 100644
--- a/sgx_trts/src/inst/hyper/td.S
+++ b/sgx_trts/src/inst/hyper/td.S
@@ -13,7 +13,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.. */
+ under the License. */
.file "td.S"
diff --git a/sgx_trts/src/inst/hyper/xsave_mask.S b/sgx_trts/src/inst/hyper/xsave_mask.S
index 87082177..6b97ab40 100644
--- a/sgx_trts/src/inst/hyper/xsave_mask.S
+++ b/sgx_trts/src/inst/hyper/xsave_mask.S
@@ -13,7 +13,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.. */
+ under the License. */
.file "xsave_mask.S"
diff --git a/sgx_trts/src/inst/mod.rs b/sgx_trts/src/inst/mod.rs
index a0808882..1f6d36fe 100644
--- a/sgx_trts/src/inst/mod.rs
+++ b/sgx_trts/src/inst/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub const INVALID_LEAF: u32 = 1 << 1;
pub const INVALID_ATTRIBUTE: u32 = 1 << 1;
diff --git a/sgx_trts/src/inst/sim/derive.rs b/sgx_trts/src/inst/sim/derive.rs
index fdf027a6..0439d6ba 100644
--- a/sgx_trts/src/inst/sim/derive.rs
+++ b/sgx_trts/src/inst/sim/derive.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::Align16;
use crate::error::abort;
diff --git a/sgx_trts/src/inst/sim/enclu.S b/sgx_trts/src/inst/sim/enclu.S
index a21b6c1b..1a8f07b7 100644
--- a/sgx_trts/src/inst/sim/enclu.S
+++ b/sgx_trts/src/inst/sim/enclu.S
@@ -13,7 +13,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.. */
+ under the License. */
.file "enclu.S"
diff --git a/sgx_trts/src/inst/sim/inst.rs b/sgx_trts/src/inst/sim/inst.rs
index 3b939ed7..a421183d 100644
--- a/sgx_trts/src/inst/sim/inst.rs
+++ b/sgx_trts/src/inst/sim/inst.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::{SecInfo, Tcs};
use crate::enclave::EnclaveRange;
diff --git a/sgx_trts/src/inst/sim/lowlib.S b/sgx_trts/src/inst/sim/lowlib.S
index aa61988e..080a1b47 100644
--- a/sgx_trts/src/inst/sim/lowlib.S
+++ b/sgx_trts/src/inst/sim/lowlib.S
@@ -13,7 +13,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.. */
+ under the License. */
.file "lowlib.S"
.section .nipx,"ax",@progbits
diff --git a/sgx_trts/src/inst/sim/mod.rs b/sgx_trts/src/inst/sim/mod.rs
index 5d047a83..ca2dda4e 100644
--- a/sgx_trts/src/inst/sim/mod.rs
+++ b/sgx_trts/src/inst/sim/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::{Enclu, SecInfo, Secs, Tcs};
use crate::error::abort;
diff --git a/sgx_trts/src/inst/sim/td.S b/sgx_trts/src/inst/sim/td.S
index 9add382c..de3fd3b9 100644
--- a/sgx_trts/src/inst/sim/td.S
+++ b/sgx_trts/src/inst/sim/td.S
@@ -13,7 +13,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.. */
+ under the License. */
.file "td.S"
diff --git a/sgx_trts/src/inst/sim/tls/gnu.rs b/sgx_trts/src/inst/sim/tls/gnu.rs
index 357381a0..639cb956 100644
--- a/sgx_trts/src/inst/sim/tls/gnu.rs
+++ b/sgx_trts/src/inst/sim/tls/gnu.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::arch::asm;
use core::ffi::c_void;
diff --git a/sgx_trts/src/inst/sim/tls/mod.rs b/sgx_trts/src/inst/sim/tls/mod.rs
index 3b79b0d5..7deebc79 100644
--- a/sgx_trts/src/inst/sim/tls/mod.rs
+++ b/sgx_trts/src/inst/sim/tls/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::Tcs;
use crate::inst::sim::TcsSim;
diff --git a/sgx_trts/src/inst/sim/xsave_mask.S b/sgx_trts/src/inst/sim/xsave_mask.S
index 23f9f364..f7a67822 100644
--- a/sgx_trts/src/inst/sim/xsave_mask.S
+++ b/sgx_trts/src/inst/sim/xsave_mask.S
@@ -13,7 +13,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.. */
+ under the License. */
.file "xsave_mask.S"
.section .nipd,"aw"
diff --git a/sgx_trts/src/lib.rs b/sgx_trts/src/lib.rs
index 5bd39df1..03e7fbf4 100644
--- a/sgx_trts/src/lib.rs
+++ b/sgx_trts/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! # Trusted Runtime System
diff --git a/sgx_trts/src/macros.rs b/sgx_trts/src/macros.rs
index 05b103d0..300fdcb0 100644
--- a/sgx_trts/src/macros.rs
+++ b/sgx_trts/src/macros.rs
@@ -13,6 +13,6 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub use crate::is_x86_feature_detected;
diff --git a/sgx_trts/src/pkru.rs b/sgx_trts/src/pkru.rs
index 8a0eea27..e928aead 100644
--- a/sgx_trts/src/pkru.rs
+++ b/sgx_trts/src/pkru.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::feature::SysFeatures;
use core::arch::asm;
diff --git a/sgx_trts/src/rand.rs b/sgx_trts/src/rand.rs
index 83c455fa..fe0aeaaa 100644
--- a/sgx_trts/src/rand.rs
+++ b/sgx_trts/src/rand.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::enclave::EnclaveRange;
use crate::error;
diff --git a/sgx_trts/src/se/key.rs b/sgx_trts/src/se/key.rs
index 3d56b8c8..ed52199a 100644
--- a/sgx_trts/src/se/key.rs
+++ b/sgx_trts/src/se/key.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::{Align16, Align512};
use crate::enclave::EnclaveRange;
diff --git a/sgx_trts/src/se/mod.rs b/sgx_trts/src/se/mod.rs
index 7da91d93..10073005 100644
--- a/sgx_trts/src/se/mod.rs
+++ b/sgx_trts/src/se/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod key;
mod report;
diff --git a/sgx_trts/src/se/report.rs b/sgx_trts/src/se/report.rs
index 04b3f5fd..e217f65a 100644
--- a/sgx_trts/src/se/report.rs
+++ b/sgx_trts/src/se/report.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::{Align128, Align256, Align512};
use crate::enclave::EnclaveRange;
diff --git a/sgx_trts/src/stackchk.rs b/sgx_trts/src/stackchk.rs
index 382a5ebd..b4ccd9c3 100644
--- a/sgx_trts/src/stackchk.rs
+++ b/sgx_trts/src/stackchk.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::error::abort;
diff --git a/sgx_trts/src/sync/lazy.rs b/sgx_trts/src/sync/lazy.rs
index 10aa1b2b..9c3250ad 100644
--- a/sgx_trts/src/sync/lazy.rs
+++ b/sgx_trts/src/sync/lazy.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::cell::{Cell, UnsafeCell};
use core::fmt;
diff --git a/sgx_trts/src/sync/lock_api.rs b/sgx_trts/src/sync/lock_api.rs
index 6b9eaf1a..d3f7bc77 100644
--- a/sgx_trts/src/sync/lock_api.rs
+++ b/sgx_trts/src/sync/lock_api.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub trait RawMutex {
fn lock(&self);
diff --git a/sgx_trts/src/sync/mod.rs b/sgx_trts/src/sync/mod.rs
index 5cf0fbdf..792fba99 100644
--- a/sgx_trts/src/sync/mod.rs
+++ b/sgx_trts/src/sync/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod lazy;
mod lock_api;
diff --git a/sgx_trts/src/sync/mutex.rs b/sgx_trts/src/sync/mutex.rs
index 0b909ac8..865a320c 100644
--- a/sgx_trts/src/sync/mutex.rs
+++ b/sgx_trts/src/sync/mutex.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sync::lock_api::RawMutex;
use core::cell::UnsafeCell;
diff --git a/sgx_trts/src/sync/once.rs b/sgx_trts/src/sync/once.rs
index 3261f011..90f35538 100644
--- a/sgx_trts/src/sync/once.rs
+++ b/sgx_trts/src/sync/once.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sync::{SpinMutex, SpinMutexGuard};
use core::sync::atomic::{AtomicUsize, Ordering};
diff --git a/sgx_trts/src/sync/remutex.rs b/sgx_trts/src/sync/remutex.rs
index 3dbbc274..ac7e2a0f 100644
--- a/sgx_trts/src/sync/remutex.rs
+++ b/sgx_trts/src/sync/remutex.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sync::lock_api::RawMutex;
use crate::tcs;
diff --git a/sgx_trts/src/sync/rwlock.rs b/sgx_trts/src/sync/rwlock.rs
index 5f4d9ccc..1c629c44 100644
--- a/sgx_trts/src/sync/rwlock.rs
+++ b/sgx_trts/src/sync/rwlock.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sync::lock_api::RawRwLock;
use core::cell::UnsafeCell;
diff --git a/sgx_trts/src/tcs/list.rs b/sgx_trts/src/tcs/list.rs
index 1358983a..2bbeb07b 100644
--- a/sgx_trts/src/tcs/list.rs
+++ b/sgx_trts/src/tcs/list.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::Tcs;
use crate::rand::Rng;
diff --git a/sgx_trts/src/tcs/mod.rs b/sgx_trts/src/tcs/mod.rs
index 7860d818..f4cb8372 100644
--- a/sgx_trts/src/tcs/mod.rs
+++ b/sgx_trts/src/tcs/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub(crate) mod list;
pub(crate) mod tc;
diff --git a/sgx_trts/src/tcs/tc.rs b/sgx_trts/src/tcs/tc.rs
index 09e4bcfc..56f947b7 100644
--- a/sgx_trts/src/tcs/tc.rs
+++ b/sgx_trts/src/tcs/tc.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::{self, Global, Tcs, TcsPolicy, Tds};
use crate::enclave::parse;
diff --git a/sgx_trts/src/tcs/tls.rs b/sgx_trts/src/tcs/tls.rs
index ae56fa3e..44cef81b 100644
--- a/sgx_trts/src/tcs/tls.rs
+++ b/sgx_trts/src/tcs/tls.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::Tds;
use crate::tcs::tc;
diff --git a/sgx_trts/src/thread/info.rs b/sgx_trts/src/thread/info.rs
index c1d609d9..6097392a 100644
--- a/sgx_trts/src/thread/info.rs
+++ b/sgx_trts/src/thread/info.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::thread::Thread;
use core::cell::RefCell;
diff --git a/sgx_trts/src/thread/mod.rs b/sgx_trts/src/thread/mod.rs
index 388da0d8..34cc49fb 100644
--- a/sgx_trts/src/thread/mod.rs
+++ b/sgx_trts/src/thread/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod info;
mod native;
diff --git a/sgx_trts/src/thread/native.rs b/sgx_trts/src/thread/native.rs
index 83e5c714..f60e75b9 100644
--- a/sgx_trts/src/thread/native.rs
+++ b/sgx_trts/src/thread/native.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::enclave::{is_within_enclave, EnclaveRange, UNINIT_FLAG};
use crate::error;
diff --git a/sgx_trts/src/thread/task.rs b/sgx_trts/src/thread/task.rs
index 775661b4..654f20d5 100644
--- a/sgx_trts/src/thread/task.rs
+++ b/sgx_trts/src/thread/task.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sync::SpinMutex;
use crate::thread::Thread;
diff --git a/sgx_trts/src/thread/tls/bitset.rs b/sgx_trts/src/thread/tls/bitset.rs
index 7441dea4..6b96f39d 100644
--- a/sgx_trts/src/thread/tls/bitset.rs
+++ b/sgx_trts/src/thread/tls/bitset.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::thread::tls::{TLS_KEYS_BITSET_SIZE, USIZE_BITS};
use core::iter::{Enumerate, Peekable};
diff --git a/sgx_trts/src/thread/tls/mod.rs b/sgx_trts/src/thread/tls/mod.rs
index cb77ef5d..48af05de 100644
--- a/sgx_trts/src/thread/tls/mod.rs
+++ b/sgx_trts/src/thread/tls/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::enclave::is_within_enclave;
use crate::thread::tls::bitset::Bitset;
diff --git a/sgx_trts/src/trts.rs b/sgx_trts/src/trts.rs
index 207b363a..ca9743d0 100644
--- a/sgx_trts/src/trts.rs
+++ b/sgx_trts/src/trts.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::feature::SysFeatures;
use sgx_types::types::EnclaveMode;
diff --git a/sgx_trts/src/veh/exception.rs b/sgx_trts/src/veh/exception.rs
index 92d5fb85..d5f419ef 100644
--- a/sgx_trts/src/veh/exception.rs
+++ b/sgx_trts/src/veh/exception.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::arch::{self, Tcs};
use crate::edmm;
diff --git a/sgx_trts/src/veh/list.rs b/sgx_trts/src/veh/list.rs
index 64ad6681..8c6613b9 100644
--- a/sgx_trts/src/veh/list.rs
+++ b/sgx_trts/src/veh/list.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
@@ -30,7 +30,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::rand::Rng;
use crate::sync::OnceCell;
diff --git a/sgx_trts/src/veh/mod.rs b/sgx_trts/src/veh/mod.rs
index a233a755..df7f38af 100644
--- a/sgx_trts/src/veh/mod.rs
+++ b/sgx_trts/src/veh/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod exception;
mod list;
diff --git a/sgx_trts/src/veh/register.rs b/sgx_trts/src/veh/register.rs
index b70751e4..653f1656 100644
--- a/sgx_trts/src/veh/register.rs
+++ b/sgx_trts/src/veh/register.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::enclave::is_within_enclave;
use crate::error;
diff --git a/sgx_trts/src/version.rs b/sgx_trts/src/version.rs
index e253c711..58fc9f13 100644
--- a/sgx_trts/src/version.rs
+++ b/sgx_trts/src/version.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub const MAJOR_VERSION: usize = 2;
pub const MINOR_VERSION: usize = 17;
diff --git a/sgx_trts/src/xsave.rs b/sgx_trts/src/xsave.rs
index 6dd6d597..53db4adc 100644
--- a/sgx_trts/src/xsave.rs
+++ b/sgx_trts/src/xsave.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use sgx_types::types;
diff --git a/sgx_tse/src/capi.rs b/sgx_tse/src/capi.rs
index ea581a0f..9e7c5f17 100644
--- a/sgx_tse/src/capi.rs
+++ b/sgx_tse/src/capi.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::se::{EnclaveKey, EnclaveReport, EnclaveTarget, TeeReport};
use sgx_types::error::SgxStatus;
diff --git a/sgx_tse/src/lib.rs b/sgx_tse/src/lib.rs
index a22ae713..da3bea0c 100644
--- a/sgx_tse/src/lib.rs
+++ b/sgx_tse/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! # Trusted SE Library
//!
diff --git a/sgx_tse/src/se.rs b/sgx_tse/src/se.rs
index af55bb10..27a34e89 100644
--- a/sgx_tse/src/se.rs
+++ b/sgx_tse/src/se.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::mem;
use core::ptr;
diff --git a/sgx_tseal/src/aad.rs b/sgx_tseal/src/aad.rs
index 2b8e1fb3..c6a6dd01 100644
--- a/sgx_tseal/src/aad.rs
+++ b/sgx_tseal/src/aad.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::internal::InnerSealedData;
use alloc::boxed::Box;
diff --git a/sgx_tseal/src/capi.rs b/sgx_tseal/src/capi.rs
index 0107c33e..ede6c060 100644
--- a/sgx_tseal/src/capi.rs
+++ b/sgx_tseal/src/capi.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::aad::MacAad;
use crate::internal::InnerSealedData;
diff --git a/sgx_tseal/src/internal.rs b/sgx_tseal/src/internal.rs
index 82975fe2..24a1132a 100644
--- a/sgx_tseal/src/internal.rs
+++ b/sgx_tseal/src/internal.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use alloc::alloc::Global;
use alloc::boxed::Box;
diff --git a/sgx_tseal/src/lib.rs b/sgx_tseal/src/lib.rs
index fbc385bf..6627042b 100644
--- a/sgx_tseal/src/lib.rs
+++ b/sgx_tseal/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_tseal/src/seal.rs b/sgx_tseal/src/seal.rs
index a9ae8a34..072a47d9 100644
--- a/sgx_tseal/src/seal.rs
+++ b/sgx_tseal/src/seal.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::internal::InnerSealedData;
use alloc::boxed::Box;
diff --git a/sgx_tstd/src/alloc.rs b/sgx_tstd/src/alloc.rs
index 508e6bd9..fe4d8da8 100644
--- a/sgx_tstd/src/alloc.rs
+++ b/sgx_tstd/src/alloc.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Memory allocation APIs.
//!
diff --git a/sgx_tstd/src/ascii.rs b/sgx_tstd/src/ascii.rs
index 0654099e..f7b384b2 100644
--- a/sgx_tstd/src/ascii.rs
+++ b/sgx_tstd/src/ascii.rs
@@ -13,6 +13,6 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub use sgx_ffi::ascii::*;
diff --git a/sgx_tstd/src/backtrace.rs b/sgx_tstd/src/backtrace.rs
index dde5ca01..0d1b144c 100644
--- a/sgx_tstd/src/backtrace.rs
+++ b/sgx_tstd/src/backtrace.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Support for capturing a stack backtrace of an OS thread
//!
diff --git a/sgx_tstd/src/backtrace/tests.rs b/sgx_tstd/src/backtrace/tests.rs
index 3cff61d6..ff60a18f 100644
--- a/sgx_tstd/src/backtrace/tests.rs
+++ b/sgx_tstd/src/backtrace/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use crate::panic::{RefUnwindSafe, UnwindSafe};
diff --git a/sgx_tstd/src/collections/hash/benches/map.rs b/sgx_tstd/src/collections/hash/benches/map.rs
index 932c3686..2e9d29d3 100644
--- a/sgx_tstd/src/collections/hash/benches/map.rs
+++ b/sgx_tstd/src/collections/hash/benches/map.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::collections::HashMap;
diff --git a/sgx_tstd/src/collections/hash/benches/mod.rs b/sgx_tstd/src/collections/hash/benches/mod.rs
index 90010fe5..21c7d9ac 100644
--- a/sgx_tstd/src/collections/hash/benches/mod.rs
+++ b/sgx_tstd/src/collections/hash/benches/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod map;
mod set_ops;
diff --git a/sgx_tstd/src/collections/hash/benches/set_ops.rs b/sgx_tstd/src/collections/hash/benches/set_ops.rs
index 95191422..76a7556d 100644
--- a/sgx_tstd/src/collections/hash/benches/set_ops.rs
+++ b/sgx_tstd/src/collections/hash/benches/set_ops.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::collections::HashSet;
diff --git a/sgx_tstd/src/collections/hash/map.rs b/sgx_tstd/src/collections/hash/map.rs
index 731c2469..42b04898 100644
--- a/sgx_tstd/src/collections/hash/map.rs
+++ b/sgx_tstd/src/collections/hash/map.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(feature = "unit_test")]
mod tests;
diff --git a/sgx_tstd/src/collections/hash/map/tests.rs b/sgx_tstd/src/collections/hash/map/tests.rs
index d2673485..d7d67e7f 100644
--- a/sgx_tstd/src/collections/hash/map/tests.rs
+++ b/sgx_tstd/src/collections/hash/map/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::Entry::{Occupied, Vacant};
use super::HashMap;
diff --git a/sgx_tstd/src/collections/hash/mod.rs b/sgx_tstd/src/collections/hash/mod.rs
index be4625e5..4b99f4ac 100644
--- a/sgx_tstd/src/collections/hash/mod.rs
+++ b/sgx_tstd/src/collections/hash/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Unordered containers, implemented as hash-tables
diff --git a/sgx_tstd/src/collections/hash/set.rs b/sgx_tstd/src/collections/hash/set.rs
index 41835d2f..20451466 100644
--- a/sgx_tstd/src/collections/hash/set.rs
+++ b/sgx_tstd/src/collections/hash/set.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(feature = "unit_test")]
mod tests;
diff --git a/sgx_tstd/src/collections/hash/set/tests.rs b/sgx_tstd/src/collections/hash/set/tests.rs
index 0c01bd7f..7b3f77f0 100644
--- a/sgx_tstd/src/collections/hash/set/tests.rs
+++ b/sgx_tstd/src/collections/hash/set/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::HashSet;
diff --git a/sgx_tstd/src/collections/mod.rs b/sgx_tstd/src/collections/mod.rs
index ed87791c..33f360f9 100644
--- a/sgx_tstd/src/collections/mod.rs
+++ b/sgx_tstd/src/collections/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Collection types.
//!
diff --git a/sgx_tstd/src/enclave.rs b/sgx_tstd/src/enclave.rs
index 89a312f2..7649cb22 100644
--- a/sgx_tstd/src/enclave.rs
+++ b/sgx_tstd/src/enclave.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::fs;
use crate::io;
diff --git a/sgx_tstd/src/env.rs b/sgx_tstd/src/env.rs
index ecc2fa79..500cdf2c 100644
--- a/sgx_tstd/src/env.rs
+++ b/sgx_tstd/src/env.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Inspection and manipulation of the process's environment.
//!
diff --git a/sgx_tstd/src/env/tests.rs b/sgx_tstd/src/env/tests.rs
index bc7e8c9e..01d3988e 100644
--- a/sgx_tstd/src/env/tests.rs
+++ b/sgx_tstd/src/env/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::unnecessary_mut_passed)]
diff --git a/sgx_tstd/src/error.rs b/sgx_tstd/src/error.rs
index 736843f2..3b45c4be 100644
--- a/sgx_tstd/src/error.rs
+++ b/sgx_tstd/src/error.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Traits for working with Errors.
diff --git a/sgx_tstd/src/error/tests.rs b/sgx_tstd/src/error/tests.rs
index 5fba6ecf..9adf97df 100644
--- a/sgx_tstd/src/error/tests.rs
+++ b/sgx_tstd/src/error/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::Error;
use crate::fmt;
diff --git a/sgx_tstd/src/f32.rs b/sgx_tstd/src/f32.rs
index e762be63..53ad7e8a 100644
--- a/sgx_tstd/src/f32.rs
+++ b/sgx_tstd/src/f32.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Constants for the `f32` single-precision floating point type.
//!
diff --git a/sgx_tstd/src/f32/tests.rs b/sgx_tstd/src/f32/tests.rs
index a44f3883..2dd94c9b 100644
--- a/sgx_tstd/src/f32/tests.rs
+++ b/sgx_tstd/src/f32/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::approx_constant)]
#![allow(clippy::excessive_precision)]
diff --git a/sgx_tstd/src/f64.rs b/sgx_tstd/src/f64.rs
index 8c197993..9fe630f5 100644
--- a/sgx_tstd/src/f64.rs
+++ b/sgx_tstd/src/f64.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Constants for the `f64` double-precision floating point type.
//!
diff --git a/sgx_tstd/src/f64/tests.rs b/sgx_tstd/src/f64/tests.rs
index 6aed8c08..7d3a13b3 100644
--- a/sgx_tstd/src/f64/tests.rs
+++ b/sgx_tstd/src/f64/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::approx_constant)]
#![allow(clippy::excessive_precision)]
diff --git a/sgx_tstd/src/ffi/mod.rs b/sgx_tstd/src/ffi/mod.rs
index 16635a3f..9b75d5e6 100644
--- a/sgx_tstd/src/ffi/mod.rs
+++ b/sgx_tstd/src/ffi/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Utilities related to FFI bindings.
//!
diff --git a/sgx_tstd/src/ffi/os_str.rs b/sgx_tstd/src/ffi/os_str.rs
index 02d59914..c4860794 100644
--- a/sgx_tstd/src/ffi/os_str.rs
+++ b/sgx_tstd/src/ffi/os_str.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::op_ref)]
diff --git a/sgx_tstd/src/ffi/os_str/tests.rs b/sgx_tstd/src/ffi/os_str/tests.rs
index 33fbb40f..a13a722d 100644
--- a/sgx_tstd/src/ffi/os_str/tests.rs
+++ b/sgx_tstd/src/ffi/os_str/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use crate::sys_common::{AsInner, IntoInner};
diff --git a/sgx_tstd/src/fs.rs b/sgx_tstd/src/fs.rs
index c259af4b..cf685991 100644
--- a/sgx_tstd/src/fs.rs
+++ b/sgx_tstd/src/fs.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Filesystem manipulation operations.
diff --git a/sgx_tstd/src/fs/tests.rs b/sgx_tstd/src/fs/tests.rs
index 3d2f3fd2..babbeede 100644
--- a/sgx_tstd/src/fs/tests.rs
+++ b/sgx_tstd/src/fs/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::op_ref)]
#![allow(clippy::single_match)]
diff --git a/sgx_tstd/src/hash/mod.rs b/sgx_tstd/src/hash/mod.rs
index 8460b951..bcea0a43 100644
--- a/sgx_tstd/src/hash/mod.rs
+++ b/sgx_tstd/src/hash/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Generic hashing support.
//!
diff --git a/sgx_tstd/src/hash/random.rs b/sgx_tstd/src/hash/random.rs
index 56a27be8..40da4a38 100644
--- a/sgx_tstd/src/hash/random.rs
+++ b/sgx_tstd/src/hash/random.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! This module exists to isolate [`RandomState`] and [`DefaultHasher`] outside of the
diff --git a/sgx_tstd/src/io/buffered/bufreader.rs b/sgx_tstd/src/io/buffered/bufreader.rs
index 65f4f846..ced20127 100644
--- a/sgx_tstd/src/io/buffered/bufreader.rs
+++ b/sgx_tstd/src/io/buffered/bufreader.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod buffer;
diff --git a/sgx_tstd/src/io/buffered/bufreader/buffer.rs b/sgx_tstd/src/io/buffered/bufreader/buffer.rs
index fb248802..fd5777bc 100644
--- a/sgx_tstd/src/io/buffered/bufreader/buffer.rs
+++ b/sgx_tstd/src/io/buffered/bufreader/buffer.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
/// An encapsulation of `BufReader`'s buffer management logic.
///
diff --git a/sgx_tstd/src/io/buffered/bufwriter.rs b/sgx_tstd/src/io/buffered/bufwriter.rs
index 8dd44a53..f921d149 100644
--- a/sgx_tstd/src/io/buffered/bufwriter.rs
+++ b/sgx_tstd/src/io/buffered/bufwriter.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::error;
use crate::fmt;
diff --git a/sgx_tstd/src/io/buffered/linewriter.rs b/sgx_tstd/src/io/buffered/linewriter.rs
index b0997db2..441f5b20 100644
--- a/sgx_tstd/src/io/buffered/linewriter.rs
+++ b/sgx_tstd/src/io/buffered/linewriter.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::fmt;
use crate::io::{self, buffered::LineWriterShim, BufWriter, IntoInnerError, IoSlice, Write};
diff --git a/sgx_tstd/src/io/buffered/linewritershim.rs b/sgx_tstd/src/io/buffered/linewritershim.rs
index 470db0a9..4fc851f0 100644
--- a/sgx_tstd/src/io/buffered/linewritershim.rs
+++ b/sgx_tstd/src/io/buffered/linewritershim.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::io::{self, BufWriter, IoSlice, Write};
use crate::sys_common::memchr;
diff --git a/sgx_tstd/src/io/buffered/mod.rs b/sgx_tstd/src/io/buffered/mod.rs
index 14d6097e..60de6d38 100644
--- a/sgx_tstd/src/io/buffered/mod.rs
+++ b/sgx_tstd/src/io/buffered/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Buffering wrappers for I/O traits
diff --git a/sgx_tstd/src/io/buffered/tests.rs b/sgx_tstd/src/io/buffered/tests.rs
index 14de647e..5c72f0ee 100644
--- a/sgx_tstd/src/io/buffered/tests.rs
+++ b/sgx_tstd/src/io/buffered/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::io::prelude::*;
use crate::io::{
diff --git a/sgx_tstd/src/io/copy.rs b/sgx_tstd/src/io/copy.rs
index 1bed96d5..6f30fde2 100644
--- a/sgx_tstd/src/io/copy.rs
+++ b/sgx_tstd/src/io/copy.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::{BorrowedBuf, BufReader, BufWriter, Read, Result, Write, DEFAULT_BUF_SIZE};
use crate::alloc::Allocator;
diff --git a/sgx_tstd/src/io/copy/tests.rs b/sgx_tstd/src/io/copy/tests.rs
index 80d4903d..d5df9ff9 100644
--- a/sgx_tstd/src/io/copy/tests.rs
+++ b/sgx_tstd/src/io/copy/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::cmp::{max, min};
use crate::collections::VecDeque;
diff --git a/sgx_tstd/src/io/cursor.rs b/sgx_tstd/src/io/cursor.rs
index e5fc8415..9f8da589 100644
--- a/sgx_tstd/src/io/cursor.rs
+++ b/sgx_tstd/src/io/cursor.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(feature = "unit_test")]
mod tests;
diff --git a/sgx_tstd/src/io/cursor/tests.rs b/sgx_tstd/src/io/cursor/tests.rs
index b61a46f3..fa93f478 100644
--- a/sgx_tstd/src/io/cursor/tests.rs
+++ b/sgx_tstd/src/io/cursor/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::unnecessary_cast)]
diff --git a/sgx_tstd/src/io/error.rs b/sgx_tstd/src/io/error.rs
index 6481cc07..01c8c4a4 100644
--- a/sgx_tstd/src/io/error.rs
+++ b/sgx_tstd/src/io/error.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(feature = "unit_test")]
mod tests;
diff --git a/sgx_tstd/src/io/error/repr_bitpacked.rs b/sgx_tstd/src/io/error/repr_bitpacked.rs
index ac44b3ab..6d1d5e46 100644
--- a/sgx_tstd/src/io/error/repr_bitpacked.rs
+++ b/sgx_tstd/src/io/error/repr_bitpacked.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! This is a densely packed error representation which is used on targets with
//! 64-bit pointers.
diff --git a/sgx_tstd/src/io/error/repr_unpacked.rs b/sgx_tstd/src/io/error/repr_unpacked.rs
index 92aeb2e9..b47ac06c 100644
--- a/sgx_tstd/src/io/error/repr_unpacked.rs
+++ b/sgx_tstd/src/io/error/repr_unpacked.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! This is a fairly simple unpacked error representation that's used on
//! non-64bit targets, where the packed 64 bit representation wouldn't work, and
diff --git a/sgx_tstd/src/io/error/tests.rs b/sgx_tstd/src/io/error/tests.rs
index 58d6e114..8373ba91 100644
--- a/sgx_tstd/src/io/error/tests.rs
+++ b/sgx_tstd/src/io/error/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::{const_io_error, Custom, Error, ErrorData, ErrorKind, Repr, SimpleMessage};
use crate::assert_matches::assert_matches;
diff --git a/sgx_tstd/src/io/impls.rs b/sgx_tstd/src/io/impls.rs
index 0992d69d..8e7f61a1 100644
--- a/sgx_tstd/src/io/impls.rs
+++ b/sgx_tstd/src/io/impls.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(feature = "unit_test")]
mod tests;
diff --git a/sgx_tstd/src/io/impls/tests.rs b/sgx_tstd/src/io/impls/tests.rs
index 7adabb83..c1f5233e 100644
--- a/sgx_tstd/src/io/impls/tests.rs
+++ b/sgx_tstd/src/io/impls/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::io::prelude::*;
diff --git a/sgx_tstd/src/io/mod.rs b/sgx_tstd/src/io/mod.rs
index a6911938..181dee77 100644
--- a/sgx_tstd/src/io/mod.rs
+++ b/sgx_tstd/src/io/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Traits, helpers, and type definitions for core I/O functionality.
//!
diff --git a/sgx_tstd/src/io/prelude.rs b/sgx_tstd/src/io/prelude.rs
index ca50e5dc..e7211b4f 100644
--- a/sgx_tstd/src/io/prelude.rs
+++ b/sgx_tstd/src/io/prelude.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! The I/O Prelude.
//!
diff --git a/sgx_tstd/src/io/stdio.rs b/sgx_tstd/src/io/stdio.rs
index b629fba4..8a02e614 100644
--- a/sgx_tstd/src/io/stdio.rs
+++ b/sgx_tstd/src/io/stdio.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(feature = "unit_test")]
mod tests;
diff --git a/sgx_tstd/src/io/stdio/tests.rs b/sgx_tstd/src/io/stdio/tests.rs
index 9b4a6201..7a110ae8 100644
--- a/sgx_tstd/src/io/stdio/tests.rs
+++ b/sgx_tstd/src/io/stdio/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use crate::panic::{RefUnwindSafe, UnwindSafe};
diff --git a/sgx_tstd/src/io/tests.rs b/sgx_tstd/src/io/tests.rs
index 5b16a547..edaa5ee6 100644
--- a/sgx_tstd/src/io/tests.rs
+++ b/sgx_tstd/src/io/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::{repeat, BorrowedBuf, Cursor, SeekFrom};
use crate::cmp::{self, min};
diff --git a/sgx_tstd/src/io/util.rs b/sgx_tstd/src/io/util.rs
index 4e1b335f..19764de9 100644
--- a/sgx_tstd/src/io/util.rs
+++ b/sgx_tstd/src/io/util.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(missing_copy_implementations)]
diff --git a/sgx_tstd/src/io/util/tests.rs b/sgx_tstd/src/io/util/tests.rs
index c0b42f9d..279f6f85 100644
--- a/sgx_tstd/src/io/util/tests.rs
+++ b/sgx_tstd/src/io/util/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::io::prelude::*;
use crate::io::{empty, repeat, sink, BorrowedBuf, Empty, Repeat, SeekFrom, Sink};
diff --git a/sgx_tstd/src/lib.rs b/sgx_tstd/src/lib.rs
index 520ff165..cc68e517 100644
--- a/sgx_tstd/src/lib.rs
+++ b/sgx_tstd/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! # The Rust SGX SDK Standard Library
//!
diff --git a/sgx_tstd/src/macros.rs b/sgx_tstd/src/macros.rs
index 49a6b956..03e6a1cf 100644
--- a/sgx_tstd/src/macros.rs
+++ b/sgx_tstd/src/macros.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Standard library macros
//!
diff --git a/sgx_tstd/src/net/ip_addr.rs b/sgx_tstd/src/net/ip_addr.rs
index ae8e8e11..010d26a5 100644
--- a/sgx_tstd/src/net/ip_addr.rs
+++ b/sgx_tstd/src/net/ip_addr.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
// Tests for this module
#[cfg(feature = "unit_test")]
diff --git a/sgx_tstd/src/net/ip_addr/tests.rs b/sgx_tstd/src/net/ip_addr/tests.rs
index 78b3377d..950a1207 100644
--- a/sgx_tstd/src/net/ip_addr/tests.rs
+++ b/sgx_tstd/src/net/ip_addr/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::net::test::{sa4, tsa};
use crate::net::Ipv4Addr;
diff --git a/sgx_tstd/src/net/mod.rs b/sgx_tstd/src/net/mod.rs
index 74dd1244..04089ea7 100644
--- a/sgx_tstd/src/net/mod.rs
+++ b/sgx_tstd/src/net/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Networking primitives for TCP/UDP communication.
//!
diff --git a/sgx_tstd/src/net/socket_addr.rs b/sgx_tstd/src/net/socket_addr.rs
index 94d03828..45a4cbcd 100644
--- a/sgx_tstd/src/net/socket_addr.rs
+++ b/sgx_tstd/src/net/socket_addr.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::derived_hash_with_manual_eq)]
diff --git a/sgx_tstd/src/net/socket_addr/tests.rs b/sgx_tstd/src/net/socket_addr/tests.rs
index b8e5afe0..b4a289c5 100644
--- a/sgx_tstd/src/net/socket_addr/tests.rs
+++ b/sgx_tstd/src/net/socket_addr/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::net::test::{sa4, sa6, tsa};
use crate::net::*;
diff --git a/sgx_tstd/src/net/tcp.rs b/sgx_tstd/src/net/tcp.rs
index d615a2d6..4d60a316 100644
--- a/sgx_tstd/src/net/tcp.rs
+++ b/sgx_tstd/src/net/tcp.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(feature = "unit_test")]
mod tests;
diff --git a/sgx_tstd/src/net/tcp/tests.rs b/sgx_tstd/src/net/tcp/tests.rs
index 9e72449c..a89eb2d3 100644
--- a/sgx_tstd/src/net/tcp/tests.rs
+++ b/sgx_tstd/src/net/tcp/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::bool_assert_comparison)]
#![allow(clippy::needless_lifetimes)]
diff --git a/sgx_tstd/src/net/test.rs b/sgx_tstd/src/net/test.rs
index f34c10de..0e472c6b 100644
--- a/sgx_tstd/src/net/test.rs
+++ b/sgx_tstd/src/net/test.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(warnings)] // not used on emscripten
diff --git a/sgx_tstd/src/net/udp.rs b/sgx_tstd/src/net/udp.rs
index 54a85b25..bd59f829 100644
--- a/sgx_tstd/src/net/udp.rs
+++ b/sgx_tstd/src/net/udp.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(feature = "unit_test")]
mod tests;
diff --git a/sgx_tstd/src/net/udp/tests.rs b/sgx_tstd/src/net/udp/tests.rs
index 540d25e5..7c815e03 100644
--- a/sgx_tstd/src/net/udp/tests.rs
+++ b/sgx_tstd/src/net/udp/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::io::ErrorKind;
use crate::net::test::{next_test_ip4, next_test_ip6};
diff --git a/sgx_tstd/src/num.rs b/sgx_tstd/src/num.rs
index 2e2d7cb9..8ef92023 100644
--- a/sgx_tstd/src/num.rs
+++ b/sgx_tstd/src/num.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Additional functionality for numerics.
//!
diff --git a/sgx_tstd/src/num/benches.rs b/sgx_tstd/src/num/benches.rs
index f84da298..2a546f89 100644
--- a/sgx_tstd/src/num/benches.rs
+++ b/sgx_tstd/src/num/benches.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use sgx_test_utils::{bench_case, Bencher};
diff --git a/sgx_tstd/src/num/tests.rs b/sgx_tstd/src/num/tests.rs
index cfe9a9b5..44480462 100644
--- a/sgx_tstd/src/num/tests.rs
+++ b/sgx_tstd/src/num/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::ops::Mul;
diff --git a/sgx_tstd/src/os/fd/mod.rs b/sgx_tstd/src/os/fd/mod.rs
index 137ef219..68367253 100644
--- a/sgx_tstd/src/os/fd/mod.rs
+++ b/sgx_tstd/src/os/fd/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Owned and borrowed Unix-like file descriptors.
//!
diff --git a/sgx_tstd/src/os/fd/net.rs b/sgx_tstd/src/os/fd/net.rs
index 23b04d62..e02e58d7 100644
--- a/sgx_tstd/src/os/fd/net.rs
+++ b/sgx_tstd/src/os/fd/net.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::os::fd::owned::OwnedFd;
use crate::os::fd::raw::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
diff --git a/sgx_tstd/src/os/fd/owned.rs b/sgx_tstd/src/os/fd/owned.rs
index 9809485f..052bd9a3 100644
--- a/sgx_tstd/src/os/fd/owned.rs
+++ b/sgx_tstd/src/os/fd/owned.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Owned and borrowed Unix-like file descriptors.
diff --git a/sgx_tstd/src/os/fd/raw.rs b/sgx_tstd/src/os/fd/raw.rs
index baa8696c..1715c08b 100644
--- a/sgx_tstd/src/os/fd/raw.rs
+++ b/sgx_tstd/src/os/fd/raw.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Raw Unix-like file descriptors.
diff --git a/sgx_tstd/src/os/fd/tests.rs b/sgx_tstd/src/os/fd/tests.rs
index 7b4d1d53..b80ba697 100644
--- a/sgx_tstd/src/os/fd/tests.rs
+++ b/sgx_tstd/src/os/fd/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use sgx_test_utils::test_case;
diff --git a/sgx_tstd/src/os/linux/fs.rs b/sgx_tstd/src/os/linux/fs.rs
index 7f2874eb..31fc2972 100644
--- a/sgx_tstd/src/os/linux/fs.rs
+++ b/sgx_tstd/src/os/linux/fs.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Linux-specific extensions to primitives in the [`std::fs`] module.
//!
diff --git a/sgx_tstd/src/os/linux/mod.rs b/sgx_tstd/src/os/linux/mod.rs
index 13f93ce0..11fbab73 100644
--- a/sgx_tstd/src/os/linux/mod.rs
+++ b/sgx_tstd/src/os/linux/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Linux-specific definitions.
diff --git a/sgx_tstd/src/os/linux/net.rs b/sgx_tstd/src/os/linux/net.rs
index 710cdac5..e63b6414 100644
--- a/sgx_tstd/src/os/linux/net.rs
+++ b/sgx_tstd/src/os/linux/net.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Linux-specific networking functionality.
diff --git a/sgx_tstd/src/os/linux/process.rs b/sgx_tstd/src/os/linux/process.rs
index 305aeb8b..a83f372e 100644
--- a/sgx_tstd/src/os/linux/process.rs
+++ b/sgx_tstd/src/os/linux/process.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Linux-specific extensions to primitives in the [`std::process`] module.
//!
diff --git a/sgx_tstd/src/os/linux/raw.rs b/sgx_tstd/src/os/linux/raw.rs
index ae453f63..de353510 100644
--- a/sgx_tstd/src/os/linux/raw.rs
+++ b/sgx_tstd/src/os/linux/raw.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Linux-specific raw type definitions.
diff --git a/sgx_tstd/src/os/mod.rs b/sgx_tstd/src/os/mod.rs
index e54d139e..d1b8c8ad 100644
--- a/sgx_tstd/src/os/mod.rs
+++ b/sgx_tstd/src/os/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! OS-specific functionality.
diff --git a/sgx_tstd/src/os/net/linux_ext/addr.rs b/sgx_tstd/src/os/net/linux_ext/addr.rs
index a2515a50..d6bf1c82 100644
--- a/sgx_tstd/src/os/net/linux_ext/addr.rs
+++ b/sgx_tstd/src/os/net/linux_ext/addr.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Linux and Android-specific extensions to socket addresses.
diff --git a/sgx_tstd/src/os/net/linux_ext/mod.rs b/sgx_tstd/src/os/net/linux_ext/mod.rs
index 43176af0..78936c6f 100644
--- a/sgx_tstd/src/os/net/linux_ext/mod.rs
+++ b/sgx_tstd/src/os/net/linux_ext/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Linux and Android-specific networking functionality.
diff --git a/sgx_tstd/src/os/net/linux_ext/tcp.rs b/sgx_tstd/src/os/net/linux_ext/tcp.rs
index 3badd2db..c8002c9c 100644
--- a/sgx_tstd/src/os/net/linux_ext/tcp.rs
+++ b/sgx_tstd/src/os/net/linux_ext/tcp.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Linux and Android-specific tcp extensions to primitives in the [`std::net`] module.
//!
diff --git a/sgx_tstd/src/os/net/linux_ext/tests.rs b/sgx_tstd/src/os/net/linux_ext/tests.rs
index 6340e10c..4dc9d20d 100644
--- a/sgx_tstd/src/os/net/linux_ext/tests.rs
+++ b/sgx_tstd/src/os/net/linux_ext/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use sgx_test_utils::test_case;
diff --git a/sgx_tstd/src/os/net/mod.rs b/sgx_tstd/src/os/net/mod.rs
index bf6c909d..0b585801 100644
--- a/sgx_tstd/src/os/net/mod.rs
+++ b/sgx_tstd/src/os/net/mod.rs
@@ -13,6 +13,6 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub(super) mod linux_ext;
diff --git a/sgx_tstd/src/os/raw/mod.rs b/sgx_tstd/src/os/raw/mod.rs
index ac98a34a..006c0dde 100644
--- a/sgx_tstd/src/os/raw/mod.rs
+++ b/sgx_tstd/src/os/raw/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Compatibility module for C platform-specific types. Use [`core::ffi`] instead.
diff --git a/sgx_tstd/src/os/raw/tests.rs b/sgx_tstd/src/os/raw/tests.rs
index 0440de60..0e37bc53 100644
--- a/sgx_tstd/src/os/raw/tests.rs
+++ b/sgx_tstd/src/os/raw/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::any::TypeId;
diff --git a/sgx_tstd/src/os/unix/ffi/mod.rs b/sgx_tstd/src/os/unix/ffi/mod.rs
index 342bb749..0d2ee265 100644
--- a/sgx_tstd/src/os/unix/ffi/mod.rs
+++ b/sgx_tstd/src/os/unix/ffi/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Unix-specific extensions to primitives in the [`std::ffi`] module.
//!
diff --git a/sgx_tstd/src/os/unix/ffi/os_str.rs b/sgx_tstd/src/os/unix/ffi/os_str.rs
index 5ba5083f..7b520e51 100644
--- a/sgx_tstd/src/os/unix/ffi/os_str.rs
+++ b/sgx_tstd/src/os/unix/ffi/os_str.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::ffi::{OsStr, OsString};
use crate::mem;
diff --git a/sgx_tstd/src/os/unix/fs.rs b/sgx_tstd/src/os/unix/fs.rs
index a6c85671..e74eae81 100644
--- a/sgx_tstd/src/os/unix/fs.rs
+++ b/sgx_tstd/src/os/unix/fs.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Unix-specific extensions to primitives in the [`std::fs`] module.
//!
diff --git a/sgx_tstd/src/os/unix/fs/tests.rs b/sgx_tstd/src/os/unix/fs/tests.rs
index 1607362f..52030caa 100644
--- a/sgx_tstd/src/os/unix/fs/tests.rs
+++ b/sgx_tstd/src/os/unix/fs/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_tstd/src/os/unix/io/mod.rs b/sgx_tstd/src/os/unix/io/mod.rs
index b1484338..8a6446ad 100644
--- a/sgx_tstd/src/os/unix/io/mod.rs
+++ b/sgx_tstd/src/os/unix/io/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Unix-specific extensions to general I/O primitives.
//!
diff --git a/sgx_tstd/src/os/unix/io/tests.rs b/sgx_tstd/src/os/unix/io/tests.rs
index ac957602..f759793d 100644
--- a/sgx_tstd/src/os/unix/io/tests.rs
+++ b/sgx_tstd/src/os/unix/io/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::mem::size_of;
use crate::os::unix::io::RawFd;
diff --git a/sgx_tstd/src/os/unix/mod.rs b/sgx_tstd/src/os/unix/mod.rs
index 377f98e7..4244e31b 100644
--- a/sgx_tstd/src/os/unix/mod.rs
+++ b/sgx_tstd/src/os/unix/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Platform-specific extensions to `std` for Unix platforms.
//!
diff --git a/sgx_tstd/src/os/unix/net/addr.rs b/sgx_tstd/src/os/unix/net/addr.rs
index 55f0404f..e89d448f 100644
--- a/sgx_tstd/src/os/unix/net/addr.rs
+++ b/sgx_tstd/src/os/unix/net/addr.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::convert::{TryFrom, TryInto};
use crate::ffi::OsStr;
diff --git a/sgx_tstd/src/os/unix/net/ancillary.rs b/sgx_tstd/src/os/unix/net/ancillary.rs
index 6a662757..848a5431 100644
--- a/sgx_tstd/src/os/unix/net/ancillary.rs
+++ b/sgx_tstd/src/os/unix/net/ancillary.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::{sockaddr_un, SocketAddr};
diff --git a/sgx_tstd/src/os/unix/net/datagram.rs b/sgx_tstd/src/os/unix/net/datagram.rs
index 8e9430f8..a1e9bbd3 100644
--- a/sgx_tstd/src/os/unix/net/datagram.rs
+++ b/sgx_tstd/src/os/unix/net/datagram.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::{recv_vectored_with_ancillary_from, send_vectored_with_ancillary_to, SocketAncillary};
use super::{sockaddr_un, SocketAddr};
diff --git a/sgx_tstd/src/os/unix/net/listener.rs b/sgx_tstd/src/os/unix/net/listener.rs
index 4c249a63..d49925f0 100644
--- a/sgx_tstd/src/os/unix/net/listener.rs
+++ b/sgx_tstd/src/os/unix/net/listener.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::{sockaddr_un, SocketAddr, UnixStream};
use crate::convert::TryInto;
diff --git a/sgx_tstd/src/os/unix/net/mod.rs b/sgx_tstd/src/os/unix/net/mod.rs
index 78783ebe..f4e7fbb7 100644
--- a/sgx_tstd/src/os/unix/net/mod.rs
+++ b/sgx_tstd/src/os/unix/net/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Unix-specific networking functionality.
diff --git a/sgx_tstd/src/os/unix/net/stream.rs b/sgx_tstd/src/os/unix/net/stream.rs
index 6b2d866a..a66dcc9e 100644
--- a/sgx_tstd/src/os/unix/net/stream.rs
+++ b/sgx_tstd/src/os/unix/net/stream.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::{recv_vectored_with_ancillary_from, send_vectored_with_ancillary_to, SocketAncillary};
use super::{sockaddr_un, SocketAddr};
diff --git a/sgx_tstd/src/os/unix/net/tests.rs b/sgx_tstd/src/os/unix/net/tests.rs
index 5b2e9577..d5a561b5 100644
--- a/sgx_tstd/src/os/unix/net/tests.rs
+++ b/sgx_tstd/src/os/unix/net/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::bool_assert_comparison)]
#![allow(clippy::needless_borrow)]
diff --git a/sgx_tstd/src/os/unix/process.rs b/sgx_tstd/src/os/unix/process.rs
index ddafe3b0..6f355d9e 100644
--- a/sgx_tstd/src/os/unix/process.rs
+++ b/sgx_tstd/src/os/unix/process.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Unix-specific extensions to primitives in the [`std::process`] module.
//!
diff --git a/sgx_tstd/src/os/unix/raw.rs b/sgx_tstd/src/os/unix/raw.rs
index 93de8f8f..6189809c 100644
--- a/sgx_tstd/src/os/unix/raw.rs
+++ b/sgx_tstd/src/os/unix/raw.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Unix-specific primitives available on all unix platforms.
diff --git a/sgx_tstd/src/os/unix/thread.rs b/sgx_tstd/src/os/unix/thread.rs
index 5ac3ed1b..9d31cfdb 100644
--- a/sgx_tstd/src/os/unix/thread.rs
+++ b/sgx_tstd/src/os/unix/thread.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Unix-specific extensions to primitives in the [`std::thread`] module.
//!
diff --git a/sgx_tstd/src/os/unix/ucred.rs b/sgx_tstd/src/os/unix/ucred.rs
index cb657103..344dab06 100644
--- a/sgx_tstd/src/os/unix/ucred.rs
+++ b/sgx_tstd/src/os/unix/ucred.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Unix peer credentials.
diff --git a/sgx_tstd/src/os/unix/ucred/tests.rs b/sgx_tstd/src/os/unix/ucred/tests.rs
index eb8fb78c..9ecba9d2 100644
--- a/sgx_tstd/src/os/unix/ucred/tests.rs
+++ b/sgx_tstd/src/os/unix/ucred/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::os::unix::net::UnixStream;
use libc::{getgid, getpid, getuid};
diff --git a/sgx_tstd/src/panic.rs b/sgx_tstd/src/panic.rs
index 1af078cf..50c51a40 100644
--- a/sgx_tstd/src/panic.rs
+++ b/sgx_tstd/src/panic.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Panic support in the standard library.
diff --git a/sgx_tstd/src/panic/tests.rs b/sgx_tstd/src/panic/tests.rs
index 8e298c1c..5079c40f 100644
--- a/sgx_tstd/src/panic/tests.rs
+++ b/sgx_tstd/src/panic/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(dead_code)]
diff --git a/sgx_tstd/src/panicking.rs b/sgx_tstd/src/panicking.rs
index 06eb3a8c..c98b7ac0 100644
--- a/sgx_tstd/src/panicking.rs
+++ b/sgx_tstd/src/panicking.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Implementation of various bits and pieces of the `panic!` macro and
//! associated runtime pieces.
diff --git a/sgx_tstd/src/path.rs b/sgx_tstd/src/path.rs
index d7e92c2f..04319a32 100644
--- a/sgx_tstd/src/path.rs
+++ b/sgx_tstd/src/path.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Cross-platform path manipulation.
//!
diff --git a/sgx_tstd/src/path/tests.rs b/sgx_tstd/src/path/tests.rs
index 82821b9b..d9605447 100644
--- a/sgx_tstd/src/path/tests.rs
+++ b/sgx_tstd/src/path/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_tstd/src/prelude/mod.rs b/sgx_tstd/src/prelude/mod.rs
index e3109bf4..581a3fae 100644
--- a/sgx_tstd/src/prelude/mod.rs
+++ b/sgx_tstd/src/prelude/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! # The Rust Prelude
//!
diff --git a/sgx_tstd/src/prelude/v1.rs b/sgx_tstd/src/prelude/v1.rs
index 8ea33cdf..7adb79ba 100644
--- a/sgx_tstd/src/prelude/v1.rs
+++ b/sgx_tstd/src/prelude/v1.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! The first version of the prelude of The Rust Standard Library.
//!
diff --git a/sgx_tstd/src/process.rs b/sgx_tstd/src/process.rs
index a36a2b76..a4ce4730 100644
--- a/sgx_tstd/src/process.rs
+++ b/sgx_tstd/src/process.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! A module for working with processes.
//!
diff --git a/sgx_tstd/src/rt.rs b/sgx_tstd/src/rt.rs
index a2a5225f..b8928b4d 100644
--- a/sgx_tstd/src/rt.rs
+++ b/sgx_tstd/src/rt.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Runtime services
diff --git a/sgx_tstd/src/sync/barrier.rs b/sgx_tstd/src/sync/barrier.rs
index 103ea0be..dff76120 100644
--- a/sgx_tstd/src/sync/barrier.rs
+++ b/sgx_tstd/src/sync/barrier.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(feature = "unit_test")]
mod tests;
diff --git a/sgx_tstd/src/sync/barrier/tests.rs b/sgx_tstd/src/sync/barrier/tests.rs
index e2bf151d..6bfad06e 100644
--- a/sgx_tstd/src/sync/barrier/tests.rs
+++ b/sgx_tstd/src/sync/barrier/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sync::mpsc::{channel, TryRecvError};
use crate::sync::{Arc, Barrier};
diff --git a/sgx_tstd/src/sync/condvar.rs b/sgx_tstd/src/sync/condvar.rs
index f763801f..c806aab2 100644
--- a/sgx_tstd/src/sync/condvar.rs
+++ b/sgx_tstd/src/sync/condvar.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(feature = "unit_test")]
mod tests;
diff --git a/sgx_tstd/src/sync/condvar/tests.rs b/sgx_tstd/src/sync/condvar/tests.rs
index d4f565e1..30a34d7a 100644
--- a/sgx_tstd/src/sync/condvar/tests.rs
+++ b/sgx_tstd/src/sync/condvar/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::mutex_atomic)]
diff --git a/sgx_tstd/src/sync/lazy_lock.rs b/sgx_tstd/src/sync/lazy_lock.rs
index d57534d2..f056d99f 100644
--- a/sgx_tstd/src/sync/lazy_lock.rs
+++ b/sgx_tstd/src/sync/lazy_lock.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::cell::UnsafeCell;
use crate::mem::ManuallyDrop;
diff --git a/sgx_tstd/src/sync/lazy_lock/tests.rs b/sgx_tstd/src/sync/lazy_lock/tests.rs
index 2fc0bfac..34e65c73 100644
--- a/sgx_tstd/src/sync/lazy_lock/tests.rs
+++ b/sgx_tstd/src/sync/lazy_lock/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::{
cell::LazyCell,
diff --git a/sgx_tstd/src/sync/mod.rs b/sgx_tstd/src/sync/mod.rs
index 712c6988..3496aa75 100644
--- a/sgx_tstd/src/sync/mod.rs
+++ b/sgx_tstd/src/sync/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Useful synchronization primitives.
//!
diff --git a/sgx_tstd/src/sync/mpmc/array.rs b/sgx_tstd/src/sync/mpmc/array.rs
index 230db92c..2aef7744 100644
--- a/sgx_tstd/src/sync/mpmc/array.rs
+++ b/sgx_tstd/src/sync/mpmc/array.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Bounded channel based on a preallocated array.
//!
diff --git a/sgx_tstd/src/sync/mpmc/context.rs b/sgx_tstd/src/sync/mpmc/context.rs
index 14cac354..9a6f3cc9 100644
--- a/sgx_tstd/src/sync/mpmc/context.rs
+++ b/sgx_tstd/src/sync/mpmc/context.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Thread-local channel context.
diff --git a/sgx_tstd/src/sync/mpmc/counter.rs b/sgx_tstd/src/sync/mpmc/counter.rs
index c34cb55b..565465ed 100644
--- a/sgx_tstd/src/sync/mpmc/counter.rs
+++ b/sgx_tstd/src/sync/mpmc/counter.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::ops;
use crate::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
diff --git a/sgx_tstd/src/sync/mpmc/error.rs b/sgx_tstd/src/sync/mpmc/error.rs
index 28e1fe42..a8f26563 100644
--- a/sgx_tstd/src/sync/mpmc/error.rs
+++ b/sgx_tstd/src/sync/mpmc/error.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::error;
use crate::fmt;
diff --git a/sgx_tstd/src/sync/mpmc/list.rs b/sgx_tstd/src/sync/mpmc/list.rs
index 07285b67..ba4bb369 100644
--- a/sgx_tstd/src/sync/mpmc/list.rs
+++ b/sgx_tstd/src/sync/mpmc/list.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Unbounded channel implemented as a linked list.
diff --git a/sgx_tstd/src/sync/mpmc/mod.rs b/sgx_tstd/src/sync/mpmc/mod.rs
index f1cead50..c90bd69b 100644
--- a/sgx_tstd/src/sync/mpmc/mod.rs
+++ b/sgx_tstd/src/sync/mpmc/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Multi-producer multi-consumer channels.
diff --git a/sgx_tstd/src/sync/mpmc/select.rs b/sgx_tstd/src/sync/mpmc/select.rs
index 94e20eb5..0b774bab 100644
--- a/sgx_tstd/src/sync/mpmc/select.rs
+++ b/sgx_tstd/src/sync/mpmc/select.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
/// Temporary data that gets initialized during a blocking operation, and is consumed by
/// `read` or `write`.
diff --git a/sgx_tstd/src/sync/mpmc/utils.rs b/sgx_tstd/src/sync/mpmc/utils.rs
index 998b1bd6..399c727e 100644
--- a/sgx_tstd/src/sync/mpmc/utils.rs
+++ b/sgx_tstd/src/sync/mpmc/utils.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::cell::Cell;
use crate::ops::{Deref, DerefMut};
diff --git a/sgx_tstd/src/sync/mpmc/waker.rs b/sgx_tstd/src/sync/mpmc/waker.rs
index a3e4a6c2..290efa7d 100644
--- a/sgx_tstd/src/sync/mpmc/waker.rs
+++ b/sgx_tstd/src/sync/mpmc/waker.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Waking mechanism for threads blocked on channel operations.
diff --git a/sgx_tstd/src/sync/mpmc/zero.rs b/sgx_tstd/src/sync/mpmc/zero.rs
index a35eb6e6..de6faa41 100644
--- a/sgx_tstd/src/sync/mpmc/zero.rs
+++ b/sgx_tstd/src/sync/mpmc/zero.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Zero-capacity channel.
//!
diff --git a/sgx_tstd/src/sync/mpsc/mod.rs b/sgx_tstd/src/sync/mpsc/mod.rs
index 312d1257..2635ca45 100644
--- a/sgx_tstd/src/sync/mpsc/mod.rs
+++ b/sgx_tstd/src/sync/mpsc/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Multi-producer, single-consumer FIFO queue communication primitives.
//!
diff --git a/sgx_tstd/src/sync/mpsc/sync_tests.rs b/sgx_tstd/src/sync/mpsc/sync_tests.rs
index 4f5da1d5..233226ef 100644
--- a/sgx_tstd/src/sync/mpsc/sync_tests.rs
+++ b/sgx_tstd/src/sync/mpsc/sync_tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use crate::env;
diff --git a/sgx_tstd/src/sync/mpsc/tests.rs b/sgx_tstd/src/sync/mpsc/tests.rs
index a028f080..373688d2 100644
--- a/sgx_tstd/src/sync/mpsc/tests.rs
+++ b/sgx_tstd/src/sync/mpsc/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::bool_assert_comparison)]
#![allow(clippy::ok_expect)]
diff --git a/sgx_tstd/src/sync/mutex.rs b/sgx_tstd/src/sync/mutex.rs
index 8b16c7e5..e2fb2e62 100644
--- a/sgx_tstd/src/sync/mutex.rs
+++ b/sgx_tstd/src/sync/mutex.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(feature = "unit_test")]
mod tests;
diff --git a/sgx_tstd/src/sync/mutex/tests.rs b/sgx_tstd/src/sync/mutex/tests.rs
index 9223dcb6..61e00427 100644
--- a/sgx_tstd/src/sync/mutex/tests.rs
+++ b/sgx_tstd/src/sync/mutex/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::unused_unit)]
diff --git a/sgx_tstd/src/sync/once.rs b/sgx_tstd/src/sync/once.rs
index d657b676..1da807bc 100644
--- a/sgx_tstd/src/sync/once.rs
+++ b/sgx_tstd/src/sync/once.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! A "once initialization" primitive
//!
diff --git a/sgx_tstd/src/sync/once/tests.rs b/sgx_tstd/src/sync/once/tests.rs
index 481860c5..b71d2941 100644
--- a/sgx_tstd/src/sync/once/tests.rs
+++ b/sgx_tstd/src/sync/once/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::Once;
use crate::panic;
diff --git a/sgx_tstd/src/sync/once_lock.rs b/sgx_tstd/src/sync/once_lock.rs
index f5cdc83b..6a4c3d4d 100644
--- a/sgx_tstd/src/sync/once_lock.rs
+++ b/sgx_tstd/src/sync/once_lock.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::unnecessary_mut_passed)]
diff --git a/sgx_tstd/src/sync/once_lock/tests.rs b/sgx_tstd/src/sync/once_lock/tests.rs
index 501e1da0..eb597f9c 100644
--- a/sgx_tstd/src/sync/once_lock/tests.rs
+++ b/sgx_tstd/src/sync/once_lock/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::{
panic,
diff --git a/sgx_tstd/src/sync/poison.rs b/sgx_tstd/src/sync/poison.rs
index 3b9e34e6..b9c1e7a2 100644
--- a/sgx_tstd/src/sync/poison.rs
+++ b/sgx_tstd/src/sync/poison.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::error::Error;
use crate::fmt;
diff --git a/sgx_tstd/src/sync/remutex.rs b/sgx_tstd/src/sync/remutex.rs
index 9ed1aeca..d84826a5 100644
--- a/sgx_tstd/src/sync/remutex.rs
+++ b/sgx_tstd/src/sync/remutex.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(feature = "unit_test")]
mod tests;
diff --git a/sgx_tstd/src/sync/remutex/tests.rs b/sgx_tstd/src/sync/remutex/tests.rs
index 131c4708..c1752eb2 100644
--- a/sgx_tstd/src/sync/remutex/tests.rs
+++ b/sgx_tstd/src/sync/remutex/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::{ReentrantMutex, ReentrantMutexGuard};
use crate::cell::RefCell;
diff --git a/sgx_tstd/src/sync/rwlock.rs b/sgx_tstd/src/sync/rwlock.rs
index 312f7e3b..85d8a1f0 100644
--- a/sgx_tstd/src/sync/rwlock.rs
+++ b/sgx_tstd/src/sync/rwlock.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(feature = "unit_test")]
mod tests;
diff --git a/sgx_tstd/src/sync/rwlock/tests.rs b/sgx_tstd/src/sync/rwlock/tests.rs
index 30d0ad8e..855261ed 100644
--- a/sgx_tstd/src/sync/rwlock/tests.rs
+++ b/sgx_tstd/src/sync/rwlock/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::assertions_on_constants)]
diff --git a/sgx_tstd/src/sys/args.rs b/sgx_tstd/src/sys/args.rs
index 7f40b7f0..b420f665 100644
--- a/sgx_tstd/src/sys/args.rs
+++ b/sgx_tstd/src/sys/args.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Global initialization and retrieval of command line arguments.
//!
diff --git a/sgx_tstd/src/sys/backtrace/mod.rs b/sgx_tstd/src/sys/backtrace/mod.rs
index 75aef364..276541d1 100644
--- a/sgx_tstd/src/sys/backtrace/mod.rs
+++ b/sgx_tstd/src/sys/backtrace/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub use self::printing::{BacktraceFmt, PrintFmt};
/// Backtrace support built on libgcc with some extra OS-specific support
diff --git a/sgx_tstd/src/sys/backtrace/printing/mod.rs b/sgx_tstd/src/sys/backtrace/printing/mod.rs
index 26740608..789966d3 100644
--- a/sgx_tstd/src/sys/backtrace/printing/mod.rs
+++ b/sgx_tstd/src/sys/backtrace/printing/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::ffi::c_void;
use crate::fmt;
diff --git a/sgx_tstd/src/sys/backtrace/tracing/gcc_s.rs b/sgx_tstd/src/sys/backtrace/tracing/gcc_s.rs
index 771a4e81..34b35eed 100644
--- a/sgx_tstd/src/sys/backtrace/tracing/gcc_s.rs
+++ b/sgx_tstd/src/sys/backtrace/tracing/gcc_s.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::ffi::c_void;
use crate::sys::backtrace::Bomb;
diff --git a/sgx_tstd/src/sys/backtrace/tracing/mod.rs b/sgx_tstd/src/sys/backtrace/tracing/mod.rs
index 41d9677d..516ce89f 100644
--- a/sgx_tstd/src/sys/backtrace/tracing/mod.rs
+++ b/sgx_tstd/src/sys/backtrace/tracing/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::ffi::c_void;
use crate::fmt;
diff --git a/sgx_tstd/src/sys/cmath.rs b/sgx_tstd/src/sys/cmath.rs
index df4acf69..e6870afd 100644
--- a/sgx_tstd/src/sys/cmath.rs
+++ b/sgx_tstd/src/sys/cmath.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
// These symbols are all defined by `libm`,
// or by `compiler-builtins` on unsupported platforms.
diff --git a/sgx_tstd/src/sys/common/mod.rs b/sgx_tstd/src/sys/common/mod.rs
index e1eed39b..5e5c784d 100644
--- a/sgx_tstd/src/sys/common/mod.rs
+++ b/sgx_tstd/src/sys/common/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(dead_code)]
pub mod small_c_string;
diff --git a/sgx_tstd/src/sys/common/small_c_string.rs b/sgx_tstd/src/sys/common/small_c_string.rs
index 8c2f5973..74c38526 100644
--- a/sgx_tstd/src/sys/common/small_c_string.rs
+++ b/sgx_tstd/src/sys/common/small_c_string.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::ffi::{CStr, CString};
use crate::mem::MaybeUninit;
diff --git a/sgx_tstd/src/sys/common/tests.rs b/sgx_tstd/src/sys/common/tests.rs
index 5913ab3d..eb573824 100644
--- a/sgx_tstd/src/sys/common/tests.rs
+++ b/sgx_tstd/src/sys/common/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::ffi::CString;
use crate::hint::black_box;
diff --git a/sgx_tstd/src/sys/common/thread_local/fast_local.rs b/sgx_tstd/src/sys/common/thread_local/fast_local.rs
index 1d655eec..3b15fa3f 100644
--- a/sgx_tstd/src/sys/common/thread_local/fast_local.rs
+++ b/sgx_tstd/src/sys/common/thread_local/fast_local.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::lazy::LazyKeyInner;
use crate::cell::Cell;
diff --git a/sgx_tstd/src/sys/common/thread_local/mod.rs b/sgx_tstd/src/sys/common/thread_local/mod.rs
index 930dd614..dfe9bcda 100644
--- a/sgx_tstd/src/sys/common/thread_local/mod.rs
+++ b/sgx_tstd/src/sys/common/thread_local/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
// There are three thread-local implementations: "static", "fast", "OS".
// The "OS" thread local key type is accessed via platform-specific API calls and is slow, while the
diff --git a/sgx_tstd/src/sys/common/thread_local/os_local.rs b/sgx_tstd/src/sys/common/thread_local/os_local.rs
index 4f4daace..3e36e17c 100644
--- a/sgx_tstd/src/sys/common/thread_local/os_local.rs
+++ b/sgx_tstd/src/sys/common/thread_local/os_local.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::lazy::LazyKeyInner;
use crate::cell::Cell;
diff --git a/sgx_tstd/src/sys/common/thread_local/static_local.rs b/sgx_tstd/src/sys/common/thread_local/static_local.rs
index e81cb66f..0e6b104a 100644
--- a/sgx_tstd/src/sys/common/thread_local/static_local.rs
+++ b/sgx_tstd/src/sys/common/thread_local/static_local.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::lazy::LazyKeyInner;
use crate::fmt;
diff --git a/sgx_tstd/src/sys/env.rs b/sgx_tstd/src/sys/env.rs
index 19dec25c..620dd17f 100644
--- a/sgx_tstd/src/sys/env.rs
+++ b/sgx_tstd/src/sys/env.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub mod os {
pub const FAMILY: &str = "unix";
diff --git a/sgx_tstd/src/sys/fd.rs b/sgx_tstd/src/sys/fd.rs
index c140f2fc..6dc3ee8d 100644
--- a/sgx_tstd/src/sys/fd.rs
+++ b/sgx_tstd/src/sys/fd.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(feature = "unit_test")]
mod tests;
diff --git a/sgx_tstd/src/sys/fd/tests.rs b/sgx_tstd/src/sys/fd/tests.rs
index 8e1583b9..ee8bdb2c 100644
--- a/sgx_tstd/src/sys/fd/tests.rs
+++ b/sgx_tstd/src/sys/fd/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::{FileDesc, IoSlice};
use crate::os::unix::io::FromRawFd;
diff --git a/sgx_tstd/src/sys/fs.rs b/sgx_tstd/src/sys/fs.rs
index 58f23690..206bd86e 100644
--- a/sgx_tstd/src/sys/fs.rs
+++ b/sgx_tstd/src/sys/fs.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::os::unix::prelude::*;
diff --git a/sgx_tstd/src/sys/futex.rs b/sgx_tstd/src/sys/futex.rs
index e1b86da5..923008fc 100644
--- a/sgx_tstd/src/sys/futex.rs
+++ b/sgx_tstd/src/sys/futex.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sync::atomic::AtomicU32;
use crate::time::Duration;
diff --git a/sgx_tstd/src/sys/io.rs b/sgx_tstd/src/sys/io.rs
index 318b3202..cb6375c9 100644
--- a/sgx_tstd/src/sys/io.rs
+++ b/sgx_tstd/src/sys/io.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::marker::PhantomData;
use crate::os::fd::{AsFd, AsRawFd};
diff --git a/sgx_tstd/src/sys/kernel_copy.rs b/sgx_tstd/src/sys/kernel_copy.rs
index 0bb76d62..b0941344 100644
--- a/sgx_tstd/src/sys/kernel_copy.rs
+++ b/sgx_tstd/src/sys/kernel_copy.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! This module contains specializations that can offload `io::copy()` operations on file descriptor
//! containing types (`File`, `TcpStream`, etc.) to more efficient syscalls than `read(2)` and `write(2)`.
diff --git a/sgx_tstd/src/sys/kernel_copy/tests.rs b/sgx_tstd/src/sys/kernel_copy/tests.rs
index 2707c4fd..7dc60c63 100644
--- a/sgx_tstd/src/sys/kernel_copy/tests.rs
+++ b/sgx_tstd/src/sys/kernel_copy/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::fs::OpenOptions;
use crate::io;
diff --git a/sgx_tstd/src/sys/memchr.rs b/sgx_tstd/src/sys/memchr.rs
index 2ca03318..79e99e3e 100644
--- a/sgx_tstd/src/sys/memchr.rs
+++ b/sgx_tstd/src/sys/memchr.rs
@@ -13,6 +13,6 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub use sgx_ffi::memchr::*;
diff --git a/sgx_tstd/src/sys/mod.rs b/sgx_tstd/src/sys/mod.rs
index b9bf5394..5aee14b0 100644
--- a/sgx_tstd/src/sys/mod.rs
+++ b/sgx_tstd/src/sys/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::ffi::CString;
use crate::io::ErrorKind;
diff --git a/sgx_tstd/src/sys/net.rs b/sgx_tstd/src/sys/net.rs
index 18fa2bc6..7077399e 100644
--- a/sgx_tstd/src/sys/net.rs
+++ b/sgx_tstd/src/sys/net.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::cmp;
use crate::io::{self, BorrowedBuf, BorrowedCursor, IoSlice, IoSliceMut};
diff --git a/sgx_tstd/src/sys/os.rs b/sgx_tstd/src/sys/os.rs
index ee8d247f..30452cbc 100644
--- a/sgx_tstd/src/sys/os.rs
+++ b/sgx_tstd/src/sys/os.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::os::unix::prelude::*;
diff --git a/sgx_tstd/src/sys/os_str.rs b/sgx_tstd/src/sys/os_str.rs
index 58322a8d..aedf1a27 100644
--- a/sgx_tstd/src/sys/os_str.rs
+++ b/sgx_tstd/src/sys/os_str.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! The underlying OsString/OsStr implementation on Unix and many other
//! systems: just a `Vec<u8>`/`[u8]`.
diff --git a/sgx_tstd/src/sys/os_str/tests.rs b/sgx_tstd/src/sys/os_str/tests.rs
index 4daa3031..5c06700e 100644
--- a/sgx_tstd/src/sys/os_str/tests.rs
+++ b/sgx_tstd/src/sys/os_str/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_tstd/src/sys/path.rs b/sgx_tstd/src/sys/path.rs
index ccc852ce..1ceb5a66 100644
--- a/sgx_tstd/src/sys/path.rs
+++ b/sgx_tstd/src/sys/path.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::ffi::OsStr;
use crate::io;
diff --git a/sgx_tstd/src/sys/personality/dwarf/eh.rs b/sgx_tstd/src/sys/personality/dwarf/eh.rs
index 9886c72d..a215ff50 100644
--- a/sgx_tstd/src/sys/personality/dwarf/eh.rs
+++ b/sgx_tstd/src/sys/personality/dwarf/eh.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Parsing of GCC-style Language-Specific Data Area (LSDA)
//! For details see:
diff --git a/sgx_tstd/src/sys/personality/dwarf/mod.rs b/sgx_tstd/src/sys/personality/dwarf/mod.rs
index 8cdd26ac..c60e7e69 100644
--- a/sgx_tstd/src/sys/personality/dwarf/mod.rs
+++ b/sgx_tstd/src/sys/personality/dwarf/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Utilities for parsing DWARF-encoded data streams.
//! See <http://www.dwarfstd.org>,
diff --git a/sgx_tstd/src/sys/personality/dwarf/tests.rs b/sgx_tstd/src/sys/personality/dwarf/tests.rs
index 78e5d0ba..e7dfa888 100644
--- a/sgx_tstd/src/sys/personality/dwarf/tests.rs
+++ b/sgx_tstd/src/sys/personality/dwarf/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_tstd/src/sys/personality/gcc.rs b/sgx_tstd/src/sys/personality/gcc.rs
index 1b526a66..9dcb401f 100644
--- a/sgx_tstd/src/sys/personality/gcc.rs
+++ b/sgx_tstd/src/sys/personality/gcc.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Implementation of panics backed by libgcc/libunwind (in some form).
//!
diff --git a/sgx_tstd/src/sys/personality/mod.rs b/sgx_tstd/src/sys/personality/mod.rs
index 04c836c0..f935e4e2 100644
--- a/sgx_tstd/src/sys/personality/mod.rs
+++ b/sgx_tstd/src/sys/personality/mod.rs
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
//! This module contains the implementation of the `eh_personality` lang item.
//!
//! The actual implementation is heavily dependent on the target since Rust
@@ -9,6 +26,5 @@
//!
//! Additionally, ARM EHABI uses the personality function when generating
//! backtraces.
-
mod dwarf;
mod gcc;
diff --git a/sgx_tstd/src/sys/pipe.rs b/sgx_tstd/src/sys/pipe.rs
index 066bc40e..fa0fae42 100644
--- a/sgx_tstd/src/sys/pipe.rs
+++ b/sgx_tstd/src/sys/pipe.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::io::{self, BorrowedCursor, IoSlice, IoSliceMut};
use crate::mem;
diff --git a/sgx_tstd/src/sys/process.rs b/sgx_tstd/src/sys/process.rs
index 333c3409..c5fb4a86 100644
--- a/sgx_tstd/src/sys/process.rs
+++ b/sgx_tstd/src/sys/process.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[path = "unsupported/process.rs"]
mod process_inner;
diff --git a/sgx_tstd/src/sys/rand.rs b/sgx_tstd/src/sys/rand.rs
index 43b91a04..d47c28c5 100644
--- a/sgx_tstd/src/sys/rand.rs
+++ b/sgx_tstd/src/sys/rand.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub fn hashmap_random_keys() -> (u64, u64) {
const KEY_LEN: usize = core::mem::size_of::<u64>();
diff --git a/sgx_tstd/src/sys/stdio.rs b/sgx_tstd/src/sys/stdio.rs
index f6862670..88cff477 100644
--- a/sgx_tstd/src/sys/stdio.rs
+++ b/sgx_tstd/src/sys/stdio.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::io::{self, BorrowedCursor, IoSlice, IoSliceMut};
use crate::mem::ManuallyDrop;
diff --git a/sgx_tstd/src/sys/thread.rs b/sgx_tstd/src/sys/thread.rs
index f7b85c8c..92465ed9 100644
--- a/sgx_tstd/src/sys/thread.rs
+++ b/sgx_tstd/src/sys/thread.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::cmp;
use crate::ffi::CStr;
diff --git a/sgx_tstd/src/sys/thread_local_dtor.rs b/sgx_tstd/src/sys/thread_local_dtor.rs
index 6972f7b7..c36764d3 100644
--- a/sgx_tstd/src/sys/thread_local_dtor.rs
+++ b/sgx_tstd/src/sys/thread_local_dtor.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Provides thread-local destructors without an associated "key", which
//! can be more efficient.
diff --git a/sgx_tstd/src/sys/thread_local_key.rs b/sgx_tstd/src/sys/thread_local_key.rs
index 871b766d..5ee9fc02 100644
--- a/sgx_tstd/src/sys/thread_local_key.rs
+++ b/sgx_tstd/src/sys/thread_local_key.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::ptr;
diff --git a/sgx_tstd/src/sys/time.rs b/sgx_tstd/src/sys/time.rs
index bdf8dea3..bd6c6a38 100644
--- a/sgx_tstd/src/sys/time.rs
+++ b/sgx_tstd/src/sys/time.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::fmt;
use crate::time::Duration;
diff --git a/sgx_tstd/src/sys/unsupported/common.rs b/sgx_tstd/src/sys/unsupported/common.rs
index 43b5d169..3789ff0a 100644
--- a/sgx_tstd/src/sys/unsupported/common.rs
+++ b/sgx_tstd/src/sys/unsupported/common.rs
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
use crate::io as std_io;
use sgx_trts::error::abort;
diff --git a/sgx_tstd/src/sys/unsupported/mod.rs b/sgx_tstd/src/sys/unsupported/mod.rs
index 876aaf0b..1db7b45d 100644
--- a/sgx_tstd/src/sys/unsupported/mod.rs
+++ b/sgx_tstd/src/sys/unsupported/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub mod pipe;
diff --git a/sgx_tstd/src/sys/unsupported/pipe.rs b/sgx_tstd/src/sys/unsupported/pipe.rs
index 049963ae..eda55a4d 100644
--- a/sgx_tstd/src/sys/unsupported/pipe.rs
+++ b/sgx_tstd/src/sys/unsupported/pipe.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::io::{self, BorrowedCursor, IoSlice, IoSliceMut};
use crate::os::unix::io::{AsFd, AsRawFd, BorrowedFd, FromRawFd, IntoRawFd, RawFd};
diff --git a/sgx_tstd/src/sys/unsupported/process.rs b/sgx_tstd/src/sys/unsupported/process.rs
index 832c823e..ee2c2bec 100644
--- a/sgx_tstd/src/sys/unsupported/process.rs
+++ b/sgx_tstd/src/sys/unsupported/process.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::convert::{TryFrom, TryInto};
use crate::ffi::OsStr;
diff --git a/sgx_tstd/src/sys_common/at_exit_imp.rs b/sgx_tstd/src/sys_common/at_exit_imp.rs
index 607e85f7..b2fe8b64 100644
--- a/sgx_tstd/src/sys_common/at_exit_imp.rs
+++ b/sgx_tstd/src/sys_common/at_exit_imp.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Implementation of running at_exit routines
//!
diff --git a/sgx_tstd/src/sys_common/backtrace.rs b/sgx_tstd/src/sys_common/backtrace.rs
index fffdfa14..769191a8 100644
--- a/sgx_tstd/src/sys_common/backtrace.rs
+++ b/sgx_tstd/src/sys_common/backtrace.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
/// Common code for printing the backtrace in the same way across the different
/// supported platforms.
diff --git a/sgx_tstd/src/sys_common/condvar.rs b/sgx_tstd/src/sys_common/condvar.rs
index 6b788f6d..e75808a2 100644
--- a/sgx_tstd/src/sys_common/condvar.rs
+++ b/sgx_tstd/src/sys_common/condvar.rs
@@ -13,6 +13,6 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub use sgx_sync::Condvar;
diff --git a/sgx_tstd/src/sys_common/fs.rs b/sgx_tstd/src/sys_common/fs.rs
index e006f9aa..f6c1e797 100644
--- a/sgx_tstd/src/sys_common/fs.rs
+++ b/sgx_tstd/src/sys_common/fs.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::fs;
use crate::io::{self, Error, ErrorKind};
diff --git a/sgx_tstd/src/sys_common/gnu/libbacktrace.rs b/sgx_tstd/src/sys_common/gnu/libbacktrace.rs
index c13310cb..0a7d363b 100644
--- a/sgx_tstd/src/sys_common/gnu/libbacktrace.rs
+++ b/sgx_tstd/src/sys_common/gnu/libbacktrace.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::marker;
use crate::mem;
diff --git a/sgx_tstd/src/sys_common/gnu/mod.rs b/sgx_tstd/src/sys_common/gnu/mod.rs
index 67985f43..3530762e 100644
--- a/sgx_tstd/src/sys_common/gnu/mod.rs
+++ b/sgx_tstd/src/sys_common/gnu/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::ffi::c_void;
use crate::fmt;
diff --git a/sgx_tstd/src/sys_common/io.rs b/sgx_tstd/src/sys_common/io.rs
index c0889a3e..8524be80 100644
--- a/sgx_tstd/src/sys_common/io.rs
+++ b/sgx_tstd/src/sys_common/io.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub const DEFAULT_BUF_SIZE: usize = 8 * 1024;
diff --git a/sgx_tstd/src/sys_common/lazy_box.rs b/sgx_tstd/src/sys_common/lazy_box.rs
index 326a5954..4d27e6cd 100644
--- a/sgx_tstd/src/sys_common/lazy_box.rs
+++ b/sgx_tstd/src/sys_common/lazy_box.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(dead_code)] // Only used on some platforms.
diff --git a/sgx_tstd/src/sys_common/memchr.rs b/sgx_tstd/src/sys_common/memchr.rs
index de5e2e26..7e5b9c4a 100644
--- a/sgx_tstd/src/sys_common/memchr.rs
+++ b/sgx_tstd/src/sys_common/memchr.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::sys::memchr as sys;
diff --git a/sgx_tstd/src/sys_common/mod.rs b/sgx_tstd/src/sys_common/mod.rs
index a8dda5f2..b12ad056 100644
--- a/sgx_tstd/src/sys_common/mod.rs
+++ b/sgx_tstd/src/sys_common/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Platform-independent platform abstraction
//!
diff --git a/sgx_tstd/src/sys_common/mutex.rs b/sgx_tstd/src/sys_common/mutex.rs
index 651c72b0..61b28b80 100644
--- a/sgx_tstd/src/sys_common/mutex.rs
+++ b/sgx_tstd/src/sys_common/mutex.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[allow(unused_imports)]
pub use sgx_sync::{StaticMutex, StaticMutexGuard};
diff --git a/sgx_tstd/src/sys_common/net.rs b/sgx_tstd/src/sys_common/net.rs
index 186618fc..d4142b11 100644
--- a/sgx_tstd/src/sys_common/net.rs
+++ b/sgx_tstd/src/sys_common/net.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[cfg(feature = "unit_test")]
mod tests;
diff --git a/sgx_tstd/src/sys_common/net/tests.rs b/sgx_tstd/src/sys_common/net/tests.rs
index 4aead057..1b7bdb6d 100644
--- a/sgx_tstd/src/sys_common/net/tests.rs
+++ b/sgx_tstd/src/sys_common/net/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use crate::collections::HashMap;
diff --git a/sgx_tstd/src/sys_common/once/futex.rs b/sgx_tstd/src/sys_common/once/futex.rs
index 69303081..44448b35 100644
--- a/sgx_tstd/src/sys_common/once/futex.rs
+++ b/sgx_tstd/src/sys_common/once/futex.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::cell::Cell;
use crate::sync as public;
diff --git a/sgx_tstd/src/sys_common/once/mod.rs b/sgx_tstd/src/sys_common/once/mod.rs
index 53992389..87309d0c 100644
--- a/sgx_tstd/src/sys_common/once/mod.rs
+++ b/sgx_tstd/src/sys_common/once/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
// A "once" is a relatively simple primitive, and it's also typically provided
// by the OS as well (see `pthread_once` or `InitOnceExecuteOnce`). The OS
diff --git a/sgx_tstd/src/sys_common/once/queue.rs b/sgx_tstd/src/sys_common/once/queue.rs
index a4fed8c5..699c7df6 100644
--- a/sgx_tstd/src/sys_common/once/queue.rs
+++ b/sgx_tstd/src/sys_common/once/queue.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
// Each `Once` has one word of atomic state, and this state is CAS'd on to
// determine what to do. There are four possible state of a `Once`:
diff --git a/sgx_tstd/src/sys_common/process.rs b/sgx_tstd/src/sys_common/process.rs
index e60a862f..cdc79cd3 100644
--- a/sgx_tstd/src/sys_common/process.rs
+++ b/sgx_tstd/src/sys_common/process.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(dead_code)]
diff --git a/sgx_tstd/src/sys_common/remutex.rs b/sgx_tstd/src/sys_common/remutex.rs
index e081652c..35097e37 100644
--- a/sgx_tstd/src/sys_common/remutex.rs
+++ b/sgx_tstd/src/sys_common/remutex.rs
@@ -13,6 +13,6 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub use sgx_sync::{ReentrantMutex, ReentrantMutexGuard};
diff --git a/sgx_tstd/src/sys_common/rwlock.rs b/sgx_tstd/src/sys_common/rwlock.rs
index bdd698b9..8c3389be 100644
--- a/sgx_tstd/src/sys_common/rwlock.rs
+++ b/sgx_tstd/src/sys_common/rwlock.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[allow(unused_imports)]
pub use sgx_sync::{StaticRwLock, StaticRwLockReadGuard, StaticRwLockWriteGuard};
diff --git a/sgx_tstd/src/sys_common/tests.rs b/sgx_tstd/src/sys_common/tests.rs
index d97e08a9..fbea636a 100644
--- a/sgx_tstd/src/sys_common/tests.rs
+++ b/sgx_tstd/src/sys_common/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::mul_div_u64;
diff --git a/sgx_tstd/src/sys_common/thread.rs b/sgx_tstd/src/sys_common/thread.rs
index 46950e2d..b248758b 100644
--- a/sgx_tstd/src/sys_common/thread.rs
+++ b/sgx_tstd/src/sys_common/thread.rs
@@ -13,4 +13,4 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
diff --git a/sgx_tstd/src/sys_common/thread_info.rs b/sgx_tstd/src/sys_common/thread_info.rs
index 7ff17de6..5c0c3c49 100644
--- a/sgx_tstd/src/sys_common/thread_info.rs
+++ b/sgx_tstd/src/sys_common/thread_info.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::cell::OnceCell;
use crate::thread::Thread;
diff --git a/sgx_tstd/src/sys_common/thread_local_dtor.rs b/sgx_tstd/src/sys_common/thread_local_dtor.rs
index 11d8caa7..7191d9f5 100644
--- a/sgx_tstd/src/sys_common/thread_local_dtor.rs
+++ b/sgx_tstd/src/sys_common/thread_local_dtor.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Thread-local destructor
//!
diff --git a/sgx_tstd/src/sys_common/thread_local_key.rs b/sgx_tstd/src/sys_common/thread_local_key.rs
index 1a071f8e..ea261800 100644
--- a/sgx_tstd/src/sys_common/thread_local_key.rs
+++ b/sgx_tstd/src/sys_common/thread_local_key.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! OS-based thread local storage
//!
diff --git a/sgx_tstd/src/sys_common/thread_local_key/tests.rs b/sgx_tstd/src/sys_common/thread_local_key/tests.rs
index 38abaf69..03db39da 100644
--- a/sgx_tstd/src/sys_common/thread_local_key/tests.rs
+++ b/sgx_tstd/src/sys_common/thread_local_key/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::{Key, StaticKey};
use core::ptr;
diff --git a/sgx_tstd/src/sys_common/thread_parking/futex.rs b/sgx_tstd/src/sys_common/thread_parking/futex.rs
index b887af64..c50aca14 100644
--- a/sgx_tstd/src/sys_common/thread_parking/futex.rs
+++ b/sgx_tstd/src/sys_common/thread_parking/futex.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::pin::Pin;
use crate::sync::atomic::AtomicU32;
diff --git a/sgx_tstd/src/sys_common/thread_parking/generic.rs b/sgx_tstd/src/sys_common/thread_parking/generic.rs
index f8145ac4..a3b15f18 100644
--- a/sgx_tstd/src/sys_common/thread_parking/generic.rs
+++ b/sgx_tstd/src/sys_common/thread_parking/generic.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Parker implementation based on a Mutex and Condvar.
diff --git a/sgx_tstd/src/sys_common/thread_parking/mod.rs b/sgx_tstd/src/sys_common/thread_parking/mod.rs
index e910b3d9..13a94b3f 100644
--- a/sgx_tstd/src/sys_common/thread_parking/mod.rs
+++ b/sgx_tstd/src/sys_common/thread_parking/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
mod futex;
pub use futex::Parker;
diff --git a/sgx_tstd/src/sys_common/wstr.rs b/sgx_tstd/src/sys_common/wstr.rs
index 52f681f3..66c12cc8 100644
--- a/sgx_tstd/src/sys_common/wstr.rs
+++ b/sgx_tstd/src/sys_common/wstr.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! This module contains constructs to work with 16-bit characters (UCS-2 or UTF-16)
#![allow(dead_code)]
diff --git a/sgx_tstd/src/sys_common/wtf8.rs b/sgx_tstd/src/sys_common/wtf8.rs
index a7ab1ba6..aaaa70ad 100644
--- a/sgx_tstd/src/sys_common/wtf8.rs
+++ b/sgx_tstd/src/sys_common/wtf8.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Implementation of [the WTF-8 encoding](https://simonsapin.github.io/wtf-8/).
//!
diff --git a/sgx_tstd/src/sys_common/wtf8/tests.rs b/sgx_tstd/src/sys_common/wtf8/tests.rs
index 7163439f..0fa84091 100644
--- a/sgx_tstd/src/sys_common/wtf8/tests.rs
+++ b/sgx_tstd/src/sys_common/wtf8/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use crate::borrow::Cow;
diff --git a/sgx_tstd/src/thread/local.rs b/sgx_tstd/src/thread/local.rs
index dde3f996..0b1c9ea8 100644
--- a/sgx_tstd/src/thread/local.rs
+++ b/sgx_tstd/src/thread/local.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Thread local storage
diff --git a/sgx_tstd/src/thread/local/dynamic_tests.rs b/sgx_tstd/src/thread/local/dynamic_tests.rs
index 47df7d4f..61461e9f 100644
--- a/sgx_tstd/src/thread/local/dynamic_tests.rs
+++ b/sgx_tstd/src/thread/local/dynamic_tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::cell::RefCell;
use crate::collections::HashMap;
diff --git a/sgx_tstd/src/thread/local/tests.rs b/sgx_tstd/src/thread/local/tests.rs
index 5d08d053..40e02932 100644
--- a/sgx_tstd/src/thread/local/tests.rs
+++ b/sgx_tstd/src/thread/local/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::cell::{Cell, UnsafeCell};
use crate::sync::atomic::{AtomicU8, Ordering};
diff --git a/sgx_tstd/src/thread/mod.rs b/sgx_tstd/src/thread/mod.rs
index 47babe3d..bc4da302 100644
--- a/sgx_tstd/src/thread/mod.rs
+++ b/sgx_tstd/src/thread/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Native threads.
//!
diff --git a/sgx_tstd/src/thread/scoped.rs b/sgx_tstd/src/thread/scoped.rs
index dc37a810..eb3896cf 100644
--- a/sgx_tstd/src/thread/scoped.rs
+++ b/sgx_tstd/src/thread/scoped.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::{current, park, Builder, JoinInner, Result, Thread};
use crate::fmt;
diff --git a/sgx_tstd/src/thread/tests.rs b/sgx_tstd/src/thread/tests.rs
index 8daa20f5..ed230f8a 100644
--- a/sgx_tstd/src/thread/tests.rs
+++ b/sgx_tstd/src/thread/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(clippy::redundant_clone)]
#![allow(clippy::redundant_closure)]
diff --git a/sgx_tstd/src/time.rs b/sgx_tstd/src/time.rs
index a09b5024..84f2efb3 100644
--- a/sgx_tstd/src/time.rs
+++ b/sgx_tstd/src/time.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Temporal quantification.
//!
diff --git a/sgx_tstd/src/time/tests.rs b/sgx_tstd/src/time/tests.rs
index 31fc2391..56994303 100644
--- a/sgx_tstd/src/time/tests.rs
+++ b/sgx_tstd/src/time/tests.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::{Duration, Instant, SystemTime, UNIX_EPOCH};
use core::fmt::Debug;
diff --git a/sgx_tstd/src/untrusted/fs.rs b/sgx_tstd/src/untrusted/fs.rs
index 269ecac8..f5ee2564 100644
--- a/sgx_tstd/src/untrusted/fs.rs
+++ b/sgx_tstd/src/untrusted/fs.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Filesystem manipulation operations.
pub use crate::fs::*;
diff --git a/sgx_tstd/src/untrusted/mod.rs b/sgx_tstd/src/untrusted/mod.rs
index 7b77874e..0d6d6b85 100644
--- a/sgx_tstd/src/untrusted/mod.rs
+++ b/sgx_tstd/src/untrusted/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub mod fs;
pub mod path;
diff --git a/sgx_tstd/src/untrusted/path.rs b/sgx_tstd/src/untrusted/path.rs
index fb6144fe..e0b04caf 100644
--- a/sgx_tstd/src/untrusted/path.rs
+++ b/sgx_tstd/src/untrusted/path.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::fs;
use crate::io;
diff --git a/sgx_tstd/src/untrusted/time.rs b/sgx_tstd/src/untrusted/time.rs
index 02db95a7..f7d9ca8f 100644
--- a/sgx_tstd/src/untrusted/time.rs
+++ b/sgx_tstd/src/untrusted/time.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::time::{Instant, SystemTime, SystemTimeError, Duration};
diff --git a/sgx_types/build.rs b/sgx_types/build.rs
index f539790a..f3211799 100644
--- a/sgx_types/build.rs
+++ b/sgx_types/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/sgx_types/src/cpu_features.rs b/sgx_types/src/cpu_features.rs
index 8ca60811..e261f423 100644
--- a/sgx_types/src/cpu_features.rs
+++ b/sgx_types/src/cpu_features.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//
// The processor is a generic IA32 CPU
diff --git a/sgx_types/src/error/errno.rs b/sgx_types/src/error/errno.rs
index ffdd1e07..675aeb14 100644
--- a/sgx_types/src/error/errno.rs
+++ b/sgx_types/src/error/errno.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub const EPERM: i32 = 1;
pub const ENOENT: i32 = 2;
diff --git a/sgx_types/src/error/mod.rs b/sgx_types/src/error/mod.rs
index 2b0f8f9b..c0ad4d3d 100644
--- a/sgx_types/src/error/mod.rs
+++ b/sgx_types/src/error/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::error::Error;
use core::fmt;
diff --git a/sgx_types/src/function.rs b/sgx_types/src/function.rs
index 83d15916..e6e15033 100644
--- a/sgx_types/src/function.rs
+++ b/sgx_types/src/function.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::error::{PceError, QcnlError, Quote3Error, SgxStatus};
use crate::metadata::MetaData;
diff --git a/sgx_types/src/lib.rs b/sgx_types/src/lib.rs
index f43a1cb1..e0f79d3a 100644
--- a/sgx_types/src/lib.rs
+++ b/sgx_types/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![feature(error_in_core)]
diff --git a/sgx_types/src/macros.rs b/sgx_types/src/macros.rs
index caf9572d..f7aadaf2 100644
--- a/sgx_types/src/macros.rs
+++ b/sgx_types/src/macros.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#[macro_export]
macro_rules! cfg_if {
diff --git a/sgx_types/src/marker.rs b/sgx_types/src/marker.rs
index 171f15d0..b493e998 100644
--- a/sgx_types/src/marker.rs
+++ b/sgx_types/src/marker.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use core::cell::{Cell, RefCell, UnsafeCell};
use core::sync::atomic::{
diff --git a/sgx_types/src/memeq.rs b/sgx_types/src/memeq.rs
index 9e6e26c7..774c5ec4 100644
--- a/sgx_types/src/memeq.rs
+++ b/sgx_types/src/memeq.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
//! Comparing buffer contents in constant time.
//!
diff --git a/sgx_types/src/metadata.rs b/sgx_types/src/metadata.rs
index 9a16664f..e424c4cb 100644
--- a/sgx_types/src/metadata.rs
+++ b/sgx_types/src/metadata.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::types::{Attributes, IsvExtProdId, IsvFamilyId, Measurement, MiscSelect};
diff --git a/sgx_types/src/types/crypto.rs b/sgx_types/src/types/crypto.rs
index 7ce9ea46..90c058e5 100644
--- a/sgx_types/src/types/crypto.rs
+++ b/sgx_types/src/types/crypto.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_types/src/types/dcap.rs b/sgx_types/src/types/dcap.rs
index b76168ba..748d2133 100644
--- a/sgx_types/src/types/dcap.rs
+++ b/sgx_types/src/types/dcap.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_types/src/types/dh.rs b/sgx_types/src/types/dh.rs
index 720d870e..930a15f1 100644
--- a/sgx_types/src/types/dh.rs
+++ b/sgx_types/src/types/dh.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_types/src/types/key_exchange.rs b/sgx_types/src/types/key_exchange.rs
index afea767a..dde09abd 100644
--- a/sgx_types/src/types/key_exchange.rs
+++ b/sgx_types/src/types/key_exchange.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_types/src/types/mod.rs b/sgx_types/src/types/mod.rs
index da37b136..57d132be 100644
--- a/sgx_types/src/types/mod.rs
+++ b/sgx_types/src/types/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::marker::BytewiseEquality;
use core::convert::{From, TryInto};
diff --git a/sgx_types/src/types/quote.rs b/sgx_types/src/types/quote.rs
index 394a0476..56d4e84e 100644
--- a/sgx_types/src/types/quote.rs
+++ b/sgx_types/src/types/quote.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_types/src/types/ra.rs b/sgx_types/src/types/ra.rs
index 6a207ba3..033d1852 100644
--- a/sgx_types/src/types/ra.rs
+++ b/sgx_types/src/types/ra.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
use core::mem;
diff --git a/sgx_types/src/types/raw.rs b/sgx_types/src/types/raw.rs
index 4416d97f..6aed172d 100644
--- a/sgx_types/src/types/raw.rs
+++ b/sgx_types/src/types/raw.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
pub use core::ffi::c_void;
diff --git a/sgx_types/src/types/report2.rs b/sgx_types/src/types/report2.rs
index 7f032d4e..495f7b7f 100644
--- a/sgx_types/src/types/report2.rs
+++ b/sgx_types/src/types/report2.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_types/src/types/seal.rs b/sgx_types/src/types/seal.rs
index 7410528c..c98f3859 100644
--- a/sgx_types/src/types/seal.rs
+++ b/sgx_types/src/types/seal.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_types/src/types/switchless.rs b/sgx_types/src/types/switchless.rs
index f709a6da..e57e55bf 100644
--- a/sgx_types/src/types/switchless.rs
+++ b/sgx_types/src/types/switchless.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_types/src/types/tdx.rs b/sgx_types/src/types/tdx.rs
index e57c4814..de3b5f5d 100644
--- a/sgx_types/src/types/tdx.rs
+++ b/sgx_types/src/types/tdx.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_types/src/types/urts.rs b/sgx_types/src/types/urts.rs
index 6e5fe2e7..15da5e18 100644
--- a/sgx_types/src/types/urts.rs
+++ b/sgx_types/src/types/urts.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use super::*;
diff --git a/sgx_unwind/build.rs b/sgx_unwind/build.rs
index ab07c06e..368d19c5 100644
--- a/sgx_unwind/build.rs
+++ b/sgx_unwind/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
extern crate sgx_build_helper as build_helper;
diff --git a/sgx_unwind/src/lib.rs b/sgx_unwind/src/lib.rs
index a677a946..9c825d34 100644
--- a/sgx_unwind/src/lib.rs
+++ b/sgx_unwind/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![no_std]
#![cfg_attr(target_vendor = "teaclave", feature(rustc_private))]
diff --git a/sgx_unwind/src/libunwind.rs b/sgx_unwind/src/libunwind.rs
index e2f43bbc..db175c5f 100644
--- a/sgx_unwind/src/libunwind.rs
+++ b/sgx_unwind/src/libunwind.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(nonstandard_style)]
diff --git a/sgx_unwind/src/macros.rs b/sgx_unwind/src/macros.rs
index ae6fa6e0..8387e608 100644
--- a/sgx_unwind/src/macros.rs
+++ b/sgx_unwind/src/macros.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
/// A macro for defining `#[cfg]` if-else statements.
///
diff --git a/sgx_urts/build.rs b/sgx_urts/build.rs
index f539790a..f3211799 100644
--- a/sgx_urts/build.rs
+++ b/sgx_urts/build.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use std::env;
diff --git a/sgx_urts/src/capi.rs b/sgx_urts/src/capi.rs
index 37204903..9e023316 100644
--- a/sgx_urts/src/capi.rs
+++ b/sgx_urts/src/capi.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::enclave::{ExtFeatureBits, ExtFeatures, SgxEnclave};
use crate::enclave::{KSS_BIT_IDX, LAST_BIT_IDX, SWITCHLESS_BIT_IDX};
diff --git a/sgx_urts/src/enclave/init.rs b/sgx_urts/src/enclave/init.rs
index 8ff08089..94e7762b 100644
--- a/sgx_urts/src/enclave/init.rs
+++ b/sgx_urts/src/enclave/init.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![allow(dead_code)]
diff --git a/sgx_urts/src/enclave/mod.rs b/sgx_urts/src/enclave/mod.rs
index acfc83d1..19b3b96e 100644
--- a/sgx_urts/src/enclave/mod.rs
+++ b/sgx_urts/src/enclave/mod.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use sgx_types::error::{SgxResult, SgxStatus};
use sgx_types::function::*;
diff --git a/sgx_urts/src/enclave/uninit.rs b/sgx_urts/src/enclave/uninit.rs
index 4d0ea4ff..3e82ba44 100644
--- a/sgx_urts/src/enclave/uninit.rs
+++ b/sgx_urts/src/enclave/uninit.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::enclave::SgxEnclave;
use sgx_types::error::SgxResult;
diff --git a/sgx_urts/src/lib.rs b/sgx_urts/src/lib.rs
index 4ccbbc90..c6d8533b 100644
--- a/sgx_urts/src/lib.rs
+++ b/sgx_urts/src/lib.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
#![feature(allocator_api)]
#![allow(clippy::missing_safety_doc)]
diff --git a/sgx_urts/src/msbuf.rs b/sgx_urts/src/msbuf.rs
index 05be5a93..4cd2905a 100644
--- a/sgx_urts/src/msbuf.rs
+++ b/sgx_urts/src/msbuf.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use sgx_types::function::{
sgx_ecall_ms_buffer_alloc_aligned, sgx_ecall_ms_buffer_free, sgx_ecall_ms_buffer_remain_size,
diff --git a/sgx_urts/src/ocall/asyncio.rs b/sgx_urts/src/ocall/asyncio.rs
index 979c5011..20a33292 100644
--- a/sgx_urts/src/ocall/asyncio.rs
+++ b/sgx_urts/src/ocall/asyncio.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
use crate::ocall::util::*;
use libc::{self, c_int, c_uint, epoll_event, nfds_t, pollfd};
diff --git a/sgx_urts/src/ocall/env.rs b/sgx_urts/src/ocall/env.rs
index fde0eb89..0d09d2b9 100644
--- a/sgx_urts/src/ocall/env.rs
+++ b/sgx_urts/src/ocall/env.rs
@@ -13,7 +13,7 @@
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
-// under the License..
+// under the License.
... 236 lines suppressed ...
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org