This commit is contained in:
Nathan Sobo 2023-05-09 13:28:34 -06:00
parent 8f12489937
commit 6645323f1b
6 changed files with 92 additions and 17 deletions

View file

@ -92,6 +92,16 @@ pub enum DockPosition {
Right,
}
impl From<settings::DockPosition> for DockPosition {
fn from(value: settings::DockPosition) -> Self {
match value {
settings::DockPosition::Left => Self::Left,
settings::DockPosition::Bottom => Self::Bottom,
settings::DockPosition::Right => Self::Right,
}
}
}
impl DockPosition {
fn to_resizable_side(self) -> Side {
match self {

View file

@ -1061,11 +1061,11 @@ pub(crate) mod test {
}
impl Panel for TestItem {
fn position(&self, cx: &gpui::WindowContext) -> crate::dock::DockPosition {
fn position(&self, _cx: &gpui::WindowContext) -> crate::dock::DockPosition {
unimplemented!()
}
fn position_is_valid(&self, position: crate::dock::DockPosition) -> bool {
fn position_is_valid(&self, _position: crate::dock::DockPosition) -> bool {
unimplemented!()
}