Skip to content

Commit b4b72d6

Browse files
undo renames
1 parent 86b2b80 commit b4b72d6

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

desktop/src/app.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl App {
5151
Window::init();
5252
}
5353

54-
pub(crate) fn create(
54+
pub(crate) fn new(
5555
cef_context: Box<dyn cef::CefContext>,
5656
cef_view_info_sender: Sender<cef::ViewInfoUpdate>,
5757
wgpu_context: WgpuContext,
@@ -79,7 +79,7 @@ impl App {
7979
let mut persistent_data = PersistentData::default();
8080
persistent_data.load_from_disk();
8181

82-
let desktop_wrapper = DesktopWrapper::create(rand::rng().random());
82+
let desktop_wrapper = DesktopWrapper::new(rand::rng().random());
8383

8484
Self {
8585
render_state: None,

desktop/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub fn start() {
101101
}
102102
};
103103

104-
let mut app = App::create(Box::new(cef_context), cef_view_info_sender, wgpu_context, app_event_receiver, app_event_scheduler, cli.files);
104+
let mut app = App::new(Box::new(cef_context), cef_view_info_sender, wgpu_context, app_event_receiver, app_event_scheduler, cli.files);
105105

106106
event_loop.run_app(&mut app).unwrap();
107107

desktop/wrapper/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub struct DesktopWrapper {
2727
}
2828

2929
impl DesktopWrapper {
30-
pub fn create(uuid_random_seed: u64) -> Self {
30+
pub fn new(uuid_random_seed: u64) -> Self {
3131
#[cfg(target_os = "windows")]
3232
let host = Host::Windows;
3333
#[cfg(target_os = "macos")]
@@ -37,7 +37,7 @@ impl DesktopWrapper {
3737
let env = Environment { platform: Platform::Desktop, host };
3838

3939
Self {
40-
editor: Editor::create(env, uuid_random_seed),
40+
editor: Editor::new(env, uuid_random_seed),
4141
}
4242
}
4343

editor/src/application.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub struct Editor {
88
}
99

1010
impl Editor {
11-
pub fn create(environment: Environment, uuid_random_seed: u64) -> Self {
11+
pub fn new(environment: Environment, uuid_random_seed: u64) -> Self {
1212
ENVIRONMENT.set(environment).expect("Editor shoud only be initialized once");
1313
graphene_std::uuid::set_uuid_seed(uuid_random_seed);
1414

frontend/wasm/src/editor_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl EditorHandle {
8383
impl EditorHandle {
8484
#[cfg(not(feature = "native"))]
8585
pub fn create(platform: String, uuid_random_seed: u64, frontend_message_handler_callback: js_sys::Function) -> EditorHandle {
86-
let editor = Editor::create(
86+
let editor = Editor::new(
8787
Environment {
8888
platform: Platform::Web,
8989
host: match platform.as_str() {

0 commit comments

Comments
 (0)