mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
increase modal ItemName length to 128
This commit is contained in:
parent
874086c413
commit
80ff0cb52a
1 changed files with 2 additions and 2 deletions
|
|
@ -69,10 +69,10 @@ pub enum ModalOpcode { // if changes are made here, also update MenuOpcode
|
|||
|
||||
/// We use a new type for item names, so that it's easy to resize this as needed.
|
||||
#[derive(Debug, Copy, Clone, rkyv::Archive, rkyv::Serialize, rkyv::Deserialize)]
|
||||
pub struct ItemName(String::<64>);
|
||||
pub struct ItemName(String::<128>);
|
||||
impl ItemName {
|
||||
pub fn new(name: &str) -> Self {
|
||||
ItemName(String::<64>::from_str(name))
|
||||
ItemName(String::<128>::from_str(name))
|
||||
}
|
||||
pub fn as_str(&self) -> &str {
|
||||
self.0.as_str().expect("couldn't convert item into string")
|
||||
|
|
|
|||
Loading…
Reference in a new issue