forked from Orchid/orchid
Changes in api and upwards
- Removed out-of-stack error reporting - Revised module system to match previous Orchid system - Errors are now in a Vec everywhere - Implemented atoms and lexer - Started implementation of line parser - Tree is now ephemeral to avoid copying Atoms held inside - Moved numbers into std and the shared parser into base - Started implementation of Commands
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use std::num::NonZeroU16;
|
||||
use std::num::NonZero;
|
||||
|
||||
use hashbrown::HashMap;
|
||||
use orchid_api::error::ProjResult;
|
||||
@@ -19,7 +19,7 @@ impl DeclFs {
|
||||
match self {
|
||||
DeclFs::Lazy(fs) => {
|
||||
let vfsc: u16 = vfses.len().try_into().expect("too many vfses (more than u16::MAX)");
|
||||
let id: VfsId = NonZeroU16::new(vfsc + 1).unwrap();
|
||||
let id = VfsId(NonZero::new(vfsc + 1).unwrap());
|
||||
vfses.insert(id, *fs);
|
||||
EagerVfs::Lazy(id)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user