From 68c7b89be971abef53d88daaabdd3de913f254ab Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Sat, 18 May 2024 17:40:11 -0700 Subject: [PATCH] Add license header to unwrap_const.rs --- src/polyfill/unwrap_const.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/polyfill/unwrap_const.rs b/src/polyfill/unwrap_const.rs index 5d85ee0aa1..e31fc15ae0 100644 --- a/src/polyfill/unwrap_const.rs +++ b/src/polyfill/unwrap_const.rs @@ -1,3 +1,17 @@ +// Copyright 2022 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + /// Polyfill for `Option::unwrap()` as a const fn; feature `const_option`. /// https://github.com/rust-lang/rust/issues/67441. /// TODO(MSRV): Replace this with `x.unwrap()`.