Fix some warnings

This commit is contained in:
Joscha 2022-08-01 00:12:31 +02:00
parent a06fc51410
commit 191d79f14c
2 changed files with 1 additions and 18 deletions

View file

@ -39,15 +39,6 @@ impl<I> TreeBlocks<I> {
}
}
/// See [`Blocks::new_below`].
pub fn new_below(line: i32, top_root: Root<I>, bottom_root: Root<I>) -> Self {
Self {
blocks: Blocks::new_below(line),
top_root,
bottom_root,
}
}
pub fn blocks(&self) -> &Blocks<BlockId<I>> {
&self.blocks
}
@ -64,18 +55,10 @@ impl<I> TreeBlocks<I> {
&self.top_root
}
pub fn top_root_mut(&mut self) -> &mut Root<I> {
&mut self.top_root
}
pub fn bottom_root(&self) -> &Root<I> {
&self.bottom_root
}
pub fn bottom_root_mut(&mut self) -> &mut Root<I> {
&mut self.bottom_root
}
pub fn prepend(&mut self, other: Self) {
self.blocks.prepend(other.blocks);
self.top_root = other.top_root;

View file

@ -28,7 +28,7 @@ impl Indent {
#[async_trait]
impl Widget for Indent {
fn size(&self, frame: &mut Frame, max_width: Option<u16>, max_height: Option<u16>) -> Size {
fn size(&self, _frame: &mut Frame, _max_width: Option<u16>, _max_height: Option<u16>) -> Size {
Size::new((INDENT_WIDTH * self.level) as u16, 0)
}