We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc388f7 commit f5d84a5Copy full SHA for f5d84a5
uefi/src/proto/shell/mod.rs
@@ -63,9 +63,9 @@ impl Shell {
63
while null_count <= 1 {
64
if (*(cur_env_ptr.add(i))) == Char16::from_u16_unchecked(0).into() {
65
if cur_len > 0 {
66
- env_vec.push(CStr16::from_char16_with_nul_unchecked(
+ env_vec.push(CStr16::from_char16_with_nul(
67
&(*ptr::slice_from_raw_parts(cur_start.cast(), cur_len + 1)),
68
- ));
+ ).unwrap());
69
}
70
cur_len = 0;
71
null_count += 1;
@@ -88,7 +88,7 @@ impl Shell {
88
///
89
/// * `name` - The environment variable for which to set the value
90
/// * `value` - The new value of the environment variable
91
- /// * `volatile` - Indicates whether or not the variable is volatile or
+ /// * `volatile` - Indicates whether the variable is volatile or
92
/// not
93
94
/// # Returns
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments