Inline field

This commit is contained in:
Benjamin Sago 2017-05-21 10:51:42 +01:00
parent 957c1925b1
commit e83b019854

View File

@ -19,11 +19,9 @@ impl f::PermissionsPlus {
// As these are all ASCII characters, we can guarantee that theyre
// all going to be one character wide, and dont need to compute the
// cells display width.
let width = DisplayWidth::from(chars.len());
TextCell {
width: DisplayWidth::from(chars.len()),
contents: chars.into(),
width: width,
}
}
}