Skip to content

Commit

Permalink
fix inaccurate import cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
weezy20 committed Mar 17, 2024
1 parent a2532ad commit 19c7637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engines/pallet_engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ impl PalletEngine {
/// `State::Init` or `State::Import`
fn insert_import(&mut self, import_stmt: (TokenStream, usize)) -> anyhow::Result<()> {
self.append_tokens(import_stmt.0);
self.imports.last_import += import_stmt.1;
self.cursor += import_stmt.1;
Ok(())
}
/// Insert configuartion for a pallet - only for pallet-template atm
Expand Down

0 comments on commit 19c7637

Please sign in to comment.