Skip to content

Commit 6bf8aeb

Browse files
committed
refactor(record): rename App -> AppView
1 parent ad64dd0 commit 6bf8aeb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scm-record/src/ui.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ impl<'a> Recorder<'a> {
552552
},
553553
drawn_rects: drawn_rects.clone().into_iter().collect(),
554554
};
555-
let debug_app = App {
555+
let debug_app = AppView {
556556
debug_info: Some(debug_info),
557557
..app.clone()
558558
};
@@ -641,7 +641,7 @@ impl<'a> Recorder<'a> {
641641
Ok(self.state)
642642
}
643643

644-
fn make_app(&'a self, debug_info: Option<AppDebugInfo>) -> App<'a> {
644+
fn make_app(&'a self, debug_info: Option<AppDebugInfo>) -> AppView<'a> {
645645
let file_views: Vec<FileView> = self
646646
.state
647647
.files
@@ -773,7 +773,7 @@ impl<'a> Recorder<'a> {
773773
}
774774
})
775775
.collect();
776-
App {
776+
AppView {
777777
debug_info: None,
778778
file_views,
779779
quit_dialog: self.quit_dialog.clone(),
@@ -1689,13 +1689,13 @@ struct AppDebugInfo {
16891689
}
16901690

16911691
#[derive(Clone, Debug)]
1692-
struct App<'a> {
1692+
struct AppView<'a> {
16931693
debug_info: Option<AppDebugInfo>,
16941694
file_views: Vec<FileView<'a>>,
16951695
quit_dialog: Option<QuitDialog>,
16961696
}
16971697

1698-
impl App<'_> {
1698+
impl AppView<'_> {
16991699
fn height(&self) -> usize {
17001700
let Self {
17011701
debug_info: _,
@@ -1706,7 +1706,7 @@ impl App<'_> {
17061706
}
17071707
}
17081708

1709-
impl Component for App<'_> {
1709+
impl Component for AppView<'_> {
17101710
type Id = ComponentId;
17111711

17121712
fn id(&self) -> Self::Id {

0 commit comments

Comments
 (0)