removed 1 line of code from greenthreads

This commit is contained in:
cfsamson
2020-04-07 11:47:32 +02:00
parent f99523aaf5
commit 01181ce2a2
5 changed files with 5 additions and 8 deletions

View File

@@ -277,8 +277,7 @@ in that book. The code below is wildly unsafe and it's just to show a real examp
It's not in any way meant to showcase "best practice". Just so we're on It's not in any way meant to showcase "best practice". Just so we're on
the same page.</p> the same page.</p>
</blockquote> </blockquote>
<pre><pre class="playpen"><code class="language-rust edition2018">#![feature(asm)] <pre><pre class="playpen"><code class="language-rust edition2018">#![feature(asm, naked_functions)]
#![feature(naked_functions)]
use std::ptr; use std::ptr;
const DEFAULT_STACK_SIZE: usize = 1024 * 1024 * 2; const DEFAULT_STACK_SIZE: usize = 1024 * 1024 * 2;

View File

@@ -331,8 +331,7 @@ in that book. The code below is wildly unsafe and it's just to show a real examp
It's not in any way meant to showcase &quot;best practice&quot;. Just so we're on It's not in any way meant to showcase &quot;best practice&quot;. Just so we're on
the same page.</p> the same page.</p>
</blockquote> </blockquote>
<pre><pre class="playpen"><code class="language-rust edition2018">#![feature(asm)] <pre><pre class="playpen"><code class="language-rust edition2018">#![feature(asm, naked_functions)]
#![feature(naked_functions)]
use std::ptr; use std::ptr;
const DEFAULT_STACK_SIZE: usize = 1024 * 1024 * 2; const DEFAULT_STACK_SIZE: usize = 1024 * 1024 * 2;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -147,8 +147,7 @@ this:
> the same page. > the same page.
```rust, edition2018 ```rust, edition2018
#![feature(asm)] #![feature(asm, naked_functions)]
#![feature(naked_functions)]
use std::ptr; use std::ptr;
const DEFAULT_STACK_SIZE: usize = 1024 * 1024 * 2; const DEFAULT_STACK_SIZE: usize = 1024 * 1024 * 2;