mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-10 07:04:17 +00:00
remove 0.31 message
This commit is contained in:
parent
2c18d27bdf
commit
73918092f7
2 changed files with 8 additions and 8 deletions
|
@ -290,9 +290,9 @@ impl<'a> Block<'a> {
|
|||
///
|
||||
/// # Future improvements
|
||||
///
|
||||
/// In a future release of Ratatui (likely 0.31) this method will be changed to accept
|
||||
/// `Into<Line>` instead of `Into<Title>`. This allows us to remove the unnecessary `Title`
|
||||
/// struct and store the position in the block itself. For more information see
|
||||
/// In a future release of Ratatui this method will be changed to accept `Into<Line>` instead of
|
||||
/// `Into<Title>`. This allows us to remove the unnecessary `Title` struct and store the
|
||||
/// position in the block itself. For more information see
|
||||
/// <https://github.com/ratatui/ratatui/issues/738>.
|
||||
///
|
||||
/// [Block example]: https://github.com/ratatui/ratatui/blob/main/examples/README.md#block
|
||||
|
|
|
@ -11,10 +11,10 @@ use crate::{layout::Alignment, text::Line};
|
|||
///
|
||||
/// # Future Deprecation
|
||||
///
|
||||
/// This type is deprecated and will be removed in a future release (likely 0.31). The reason for
|
||||
/// this is that the position of the title should be stored in the block itself, not in the title.
|
||||
/// The `Line` type has an alignment method that can be used to align the title. For more
|
||||
/// information see <https://github.com/ratatui/ratatui/issues/738>.
|
||||
/// This type is deprecated and will be removed in a future release. The reason for this is that the
|
||||
/// position of the title should be stored in the block itself, not in the title. The `Line` type
|
||||
/// has an alignment method that can be used to align the title. For more information see
|
||||
/// <https://github.com/ratatui/ratatui/issues/738>.
|
||||
///
|
||||
/// Use [`Line`] instead, when the position is not defined as part of the title. When a specific
|
||||
/// position is needed, use [`Block::title_top`](crate::widgets::Block::title_top) or
|
||||
|
@ -99,7 +99,7 @@ pub enum Position {
|
|||
Bottom,
|
||||
}
|
||||
|
||||
#[deprecated = "use Block::title_top() or Block::title_bottom() instead. This will be removed in a future release (likely 0.31)."]
|
||||
#[deprecated = "use Block::title_top() or Block::title_bottom() instead. This will be removed in a future release."]
|
||||
impl<'a> Title<'a> {
|
||||
/// Set the title content.
|
||||
#[must_use = "method moves the value of self and returns the modified value"]
|
||||
|
|
Loading…
Reference in a new issue