Skip to content

Add declare_fresh#477

Merged
lsrcz merged 1 commit intomainfrom
spr/main/03f0eba1
Aug 4, 2025
Merged

Add declare_fresh#477
lsrcz merged 1 commit intomainfrom
spr/main/03f0eba1

Conversation

@lsrcz
Copy link
Collaborator

@lsrcz lsrcz commented Jul 29, 2025

Stack:

⚠️ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

commit-id:03f0eba1
})
}

fn fresh_symbol(&mut self, name: &str) -> io::Result<String> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

io::Error seems a bit strange for this, I think this makes sense to be just Result instead of io::Result and then we can use thiserror to make an appropriate error type at the trait level? Doesn't have to be this PR though

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good idea. I think this was designed when I was starting with easy-smt crate, which using io::Result. Yes we should generalize it.

@lsrcz lsrcz merged commit 33e7e61 into main Aug 4, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants