Do not use nightly features

This commit is contained in:
Julien Cretin
2020-10-23 08:41:44 +02:00
parent d8f405baab
commit f5e6f8728f
2 changed files with 3 additions and 2 deletions

View File

@@ -310,7 +310,9 @@ impl Storage for BufferStorage {
// Check and update counters.
self.incr_page_erases(page);
// Write to the storage.
self.storage[range].fill(0xff);
for byte in &mut self.storage[range] {
*byte = 0xff;
}
Ok(())
}
}

View File

@@ -13,7 +13,6 @@
// limitations under the License.
#![cfg_attr(not(feature = "std"), no_std)]
#![feature(slice_fill)]
extern crate alloc;