mirror of
https://github.com/ratatui/ratatui.git
synced 2025-09-30 22:41:44 +00:00
chore(deps): update compact_str requirement from 0.7.1 to 0.8.0 (#1229)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Josh McKinney <joshka@users.noreply.github.com>
This commit is contained in:
parent
935a7187c2
commit
6d210b3b6b
@ -27,7 +27,7 @@ rust-version = "1.74.0"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
bitflags = "2.3"
|
bitflags = "2.3"
|
||||||
cassowary = "0.3"
|
cassowary = "0.3"
|
||||||
compact_str = "0.7.1"
|
compact_str = "0.8.0"
|
||||||
crossterm = { version = "0.27", optional = true }
|
crossterm = { version = "0.27", optional = true }
|
||||||
document-features = { version = "0.2.7", optional = true }
|
document-features = { version = "0.2.7", optional = true }
|
||||||
instability = "0.3.1"
|
instability = "0.3.1"
|
||||||
|
@ -43,9 +43,9 @@ impl Cell {
|
|||||||
/// symbol doesnt fit onto the stack and requires to be placed on the heap. Use
|
/// symbol doesnt fit onto the stack and requires to be placed on the heap. Use
|
||||||
/// `Self::default().set_symbol()` in that case. See [`CompactString::new_inline`] for more
|
/// `Self::default().set_symbol()` in that case. See [`CompactString::new_inline`] for more
|
||||||
/// details on this.
|
/// details on this.
|
||||||
pub const fn new(symbol: &str) -> Self {
|
pub const fn new(symbol: &'static str) -> Self {
|
||||||
Self {
|
Self {
|
||||||
symbol: CompactString::new_inline(symbol),
|
symbol: CompactString::const_new(symbol),
|
||||||
fg: Color::Reset,
|
fg: Color::Reset,
|
||||||
bg: Color::Reset,
|
bg: Color::Reset,
|
||||||
#[cfg(feature = "underline-color")]
|
#[cfg(feature = "underline-color")]
|
||||||
@ -139,7 +139,7 @@ impl Cell {
|
|||||||
|
|
||||||
/// Resets the cell to the empty state.
|
/// Resets the cell to the empty state.
|
||||||
pub fn reset(&mut self) {
|
pub fn reset(&mut self) {
|
||||||
self.symbol = CompactString::new_inline(" ");
|
self.symbol = CompactString::new(" ");
|
||||||
self.fg = Color::Reset;
|
self.fg = Color::Reset;
|
||||||
self.bg = Color::Reset;
|
self.bg = Color::Reset;
|
||||||
#[cfg(feature = "underline-color")]
|
#[cfg(feature = "underline-color")]
|
||||||
@ -167,7 +167,7 @@ mod tests {
|
|||||||
assert_eq!(
|
assert_eq!(
|
||||||
cell,
|
cell,
|
||||||
Cell {
|
Cell {
|
||||||
symbol: CompactString::new_inline("あ"),
|
symbol: CompactString::new("あ"),
|
||||||
fg: Color::Reset,
|
fg: Color::Reset,
|
||||||
bg: Color::Reset,
|
bg: Color::Reset,
|
||||||
#[cfg(feature = "underline-color")]
|
#[cfg(feature = "underline-color")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user