graphic design tool
git clone https://git.lucas.co/cce-designer.git
Update test errors scratch log
scratch/test_errors.log | 1147 +++++++++--------------------------------------
1 file changed, 221 insertions(+), 926 deletions(-)
diff --git a/scratch/test_errors.log b/scratch/test_errors.log
index 2c019a6..b17232a 100644
--- a/scratch/test_errors.log
+++ b/scratch/test_errors.log
@@ -1,5 +1,8 @@
+warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
+package: /home/lsgalante/Dropbox/cce/cce/Cargo.toml
+workspace: /home/lsgalante/Dropbox/cce/Cargo.toml
warning: unused import: `KeyEvent`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/json_layout.rs:3:5
+ --> clear-ui/src/widget/json_layout.rs:3:5
|
3 | KeyEvent, MouseButton, ElementState, focus, Slider, Event, UiContext,
| ^^^^^^^^
@@ -7,19 +10,19 @@ warning: unused import: `KeyEvent`
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused import: `Ordering`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/mod.rs:67:38
+ --> clear-ui/src/widget/mod.rs:67:38
|
67 | use std::sync::atomic::{AtomicUsize, Ordering};
| ^^^^^^^^
warning: unused import: `wl_shm`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/backend/window_runner.rs:24:61
+ --> clear-ui/src/backend/window_runner.rs:24:61
|
24 | protocol::{wl_keyboard, wl_output, wl_pointer, wl_seat, wl_shm, wl_s...
| ^^^^^^
warning: unused imports: `SwashCache`, `TextAtlas`, and `TextRenderer`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/backend/window_runner.rs:34:36
+ --> clear-ui/src/backend/window_runner.rs:34:36
|
34 | Cache, FontSystem, Resolution, SwashCache, TextArea, TextAtlas,
| ^^^^^^^^^^ ^^^^^^^^^
@@ -27,21 +30,21 @@ warning: unused imports: `SwashCache`, `TextAtlas`, and `TextRenderer`
| ^^^^^^^^^^^^
warning: unused imports: `KeyEvent` and `MouseScrollDelta`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/context.rs:2:57
+ --> clear-ui/src/context.rs:2:57
|
2 | ...e, Key, KeyEvent, MouseButton, ElementState, MouseScrollDelta};
| ^^^^^^^^ ^^^^^^^^^^^^^^^^
warning: unused import: `crate::widget::TextBox`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/context.rs:5:5
+ --> clear-ui/src/context.rs:5:5
|
5 | use crate::widget::TextBox;
| ^^^^^^^^^^^^^^^^^^^^^^
warning: variable does not need to be mutable
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/backend/window_runner.rs:925:13
+ --> clear-ui/src/backend/window_runner.rs:976:13
|
-925 | ... let mut adapter = WgpuAdapter::new(display_ptr, surface_ptr, pw, ...
+976 | ... let mut adapter = WgpuAdapter::new(display_ptr, surface_ptr, pw, ...
| ----^^^^^^^
| |
| help: remove this `mut`
@@ -49,7 +52,7 @@ warning: variable does not need to be mutable
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/json_layout.rs:381:39
+ --> clear-ui/src/widget/json_layout.rs:381:39
|
381 | ...abels_with_bounds(&self, ctx: &UiContext) -> Vec<(TextLabel, Option<...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
@@ -57,91 +60,91 @@ warning: unused variable: `ctx`
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `x`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/json_layout.rs:440:49
+ --> clear-ui/src/widget/json_layout.rs:440:49
|
440 | Event::MouseButton { button, state, x, y } => {
| ^ help: try ignoring the field: `x: _`
warning: unused variable: `y`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/json_layout.rs:440:52
+ --> clear-ui/src/widget/json_layout.rs:440:52
|
440 | Event::MouseButton { button, state, x, y } => {
| ^ help: try ignoring the field: `y: _`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/input/button.rs:98:30
- |
-98 | fn highlight_quad(&self, ctx: &UiContext) -> Option<(f32, f32, f32, ...
- | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
+ --> clear-ui/src/widget/input/button.rs:138:30
+ |
+138 | ...fn highlight_quad(&self, ctx: &UiContext) -> Option<(f32, f32, f32, ...
+ | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/input/slider.rs:200:75
+ --> clear-ui/src/widget/input/slider.rs:200:75
|
200 | ...Delta, px: f32, py: f32, ctx: &mut UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/input/slider.rs:307:52
+ --> clear-ui/src/widget/input/slider.rs:307:52
|
307 | ... self, event: &KeyEvent, ctx: &mut UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/input/spinbox.rs:209:52
+ --> clear-ui/src/widget/input/spinbox.rs:209:52
|
209 | ... self, event: &KeyEvent, ctx: &mut UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/input/color_selector.rs:158:34
+ --> clear-ui/src/widget/input/color_selector.rs:196:34
|
-158 | fn tick(&mut self, _dt: f32, ctx: &mut UiContext) -> bool {
+196 | fn tick(&mut self, _dt: f32, ctx: &mut UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/input/color_selector.rs:201:52
+ --> clear-ui/src/widget/input/color_selector.rs:241:52
|
-201 | ... self, event: &KeyEvent, ctx: &mut UiContext) -> bool {
+241 | ... self, event: &KeyEvent, ctx: &mut UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/input/dropdown.rs:264:52
+ --> clear-ui/src/widget/input/dropdown.rs:267:52
|
-264 | ... self, event: &KeyEvent, ctx: &mut UiContext) -> bool {
+267 | ... self, event: &KeyEvent, ctx: &mut UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/input/text_box.rs:565:52
+ --> clear-ui/src/widget/input/text_box.rs:565:52
|
565 | ... self, event: &KeyEvent, ctx: &mut UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/input/text_box.rs:918:39
+ --> clear-ui/src/widget/input/text_box.rs:917:39
|
-918 | ...abels_with_bounds(&self, ctx: &UiContext) -> Vec<(TextLabel, Option<...
+917 | ...abels_with_bounds(&self, ctx: &UiContext) -> Vec<(TextLabel, Option<...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/input/text_box.rs:923:48
+ --> clear-ui/src/widget/input/text_box.rs:922:48
|
-923 | ...h_font_and_bounds(&self, ctx: &UiContext) -> Vec<(TextLabel, Option<...
+922 | ...h_font_and_bounds(&self, ctx: &UiContext) -> Vec<(TextLabel, Option<...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/input/trackpad.rs:147:91
+ --> clear-ui/src/widget/input/trackpad.rs:147:91
|
147 | ...State, px: f32, py: f32, ctx: &mut UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/input/button_strip.rs:216:91
+ --> clear-ui/src/widget/input/button_strip.rs:216:91
|
216 | ...State, px: f32, py: f32, ctx: &mut UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: value assigned to `next` is never read
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/input/button_strip.rs:359:24
+ --> clear-ui/src/widget/input/button_strip.rs:359:24
|
359 | let mut next = current;
| ^^^^^^^
@@ -150,825 +153,343 @@ warning: value assigned to `next` is never read
= note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/container.rs:25:22
+ --> clear-ui/src/widget/container/container.rs:25:22
|
25 | fn parent(&self, ctx: &UiContext) -> Option<*mut (dyn Element + 'sta...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/container.rs:26:76
+ --> clear-ui/src/widget/container/container.rs:26:76
|
26 | ... (dyn Element + 'static)>, ctx: &mut UiContext) { self.parent = paren...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/container.rs:27:24
+ --> clear-ui/src/widget/container/container.rs:27:24
|
27 | fn children(&self, ctx: &UiContext) -> Vec<*mut (dyn Element + 'stat...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/container.rs:28:66
+ --> clear-ui/src/widget/container/container.rs:28:66
|
28 | ...t (dyn Element + 'static), ctx: &mut UiContext) { self.children.push(...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/container.rs:29:34
+ --> clear-ui/src/widget/container/container.rs:29:34
|
29 | ... clear_children(&mut self, ctx: &mut UiContext) { self.children.clear...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/menu.rs:577:23
+ --> clear-ui/src/widget/container/menu.rs:577:23
|
577 | fn focused(&self, ctx: &UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/menu.rs:1258:22
+ --> clear-ui/src/widget/container/menu.rs:1258:22
|
1258 | fn parent(&self, ctx: &UiContext) -> Option<*mut (dyn Element + 's...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/menu.rs:1262:76
+ --> clear-ui/src/widget/container/menu.rs:1262:76
|
1262 | ...dyn Element + 'static)>, ctx: &mut UiContext) {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/menu.rs:1270:23
+ --> clear-ui/src/widget/container/menu.rs:1270:23
|
1270 | fn focused(&self, ctx: &UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/breadcrumb.rs:60:92
+ --> clear-ui/src/widget/container/breadcrumb.rs:74:92
|
-60 | ...tState, px: f32, _py: f32, ctx: &mut UiContext) -> bool {
+74 | ...tState, px: f32, _py: f32, ctx: &mut UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/spreadsheet.rs:233:33
+ --> clear-ui/src/widget/container/spreadsheet.rs:235:33
|
-233 | fn tick(&mut self, dt: f32, ctx: &mut UiContext) -> bool {
+235 | fn tick(&mut self, dt: f32, ctx: &mut UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/scroll_box.rs:68:31
+ --> clear-ui/src/widget/container/scroll_box.rs:68:31
|
68 | fn highlight_color(&self, ctx: &UiContext) -> Option<[f32; 4]> { None }
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/scroll_box.rs:149:52
+ --> clear-ui/src/widget/container/scroll_box.rs:149:52
|
149 | ... self, event: &KeyEvent, ctx: &mut UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/scroll_box.rs:191:22
+ --> clear-ui/src/widget/container/scroll_box.rs:191:22
|
191 | fn parent(&self, ctx: &UiContext) -> Option<*mut (dyn Element + 'st...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/scroll_box.rs:192:76
+ --> clear-ui/src/widget/container/scroll_box.rs:192:76
|
192 | ...dyn Element + 'static)>, ctx: &mut UiContext) { self.parent = parent; }
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/scroll_box.rs:193:24
+ --> clear-ui/src/widget/container/scroll_box.rs:193:24
|
193 | fn children(&self, ctx: &UiContext) -> Vec<*mut (dyn Element + 'sta...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/scroll_box.rs:194:66
+ --> clear-ui/src/widget/container/scroll_box.rs:194:66
|
194 | ...(dyn Element + 'static), ctx: &mut UiContext) { self.children.push(c...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/scroll_box.rs:195:34
+ --> clear-ui/src/widget/container/scroll_box.rs:195:34
|
195 | ...lear_children(&mut self, ctx: &mut UiContext) { self.children.clear(...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/paginator.rs:719:39
+ --> clear-ui/src/widget/container/paginator.rs:719:39
|
719 | ...abels_with_bounds(&self, ctx: &UiContext) -> Vec<(TextLabel, Option<...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/paginator.rs:967:22
+ --> clear-ui/src/widget/container/paginator.rs:967:22
|
967 | fn parent(&self, ctx: &UiContext) -> Option<*mut (dyn Element + 'st...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/paginator.rs:971:76
+ --> clear-ui/src/widget/container/paginator.rs:971:76
|
971 | ...dyn Element + 'static)>, ctx: &mut UiContext) {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/paginator.rs:975:24
+ --> clear-ui/src/widget/container/paginator.rs:975:24
|
975 | fn children(&self, ctx: &UiContext) -> Vec<*mut (dyn Element + 'sta...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/paginator.rs:984:67
+ --> clear-ui/src/widget/container/paginator.rs:984:67
|
984 | ...(dyn Element + 'static), ctx: &mut UiContext) {}
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/container/paginator.rs:985:34
+ --> clear-ui/src/widget/container/paginator.rs:985:34
|
985 | fn clear_children(&mut self, ctx: &mut UiContext) {}
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/display/panel.rs:37:30
+ --> clear-ui/src/widget/display/panel.rs:37:30
|
37 | fn highlight_quad(&self, ctx: &UiContext) -> Option<(f32, f32, f32, ...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/display/float3.rs:101:91
+ --> clear-ui/src/widget/display/float3.rs:101:91
|
101 | ...State, px: f32, py: f32, ctx: &mut UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/display/float3.rs:152:52
+ --> clear-ui/src/widget/display/float3.rs:152:52
|
152 | ... self, event: &KeyEvent, ctx: &mut UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/display/progress_bar.rs:25:30
+ --> clear-ui/src/widget/display/progress_bar.rs:25:30
|
25 | fn highlight_quad(&self, ctx: &UiContext) -> Option<(f32, f32, f32, ...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/display/list_item.rs:48:30
+ --> clear-ui/src/widget/display/list_item.rs:99:30
|
-48 | fn highlight_quad(&self, ctx: &UiContext) -> Option<(f32, f32, f32, ...
+99 | fn highlight_quad(&self, ctx: &UiContext) -> Option<(f32, f32, f32, ...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/display/graph.rs:253:53
+ --> clear-ui/src/widget/display/graph.rs:363:53
|
-253 | ... self, px: f32, py: f32, ctx: &mut UiContext) -> bool {
+363 | ... self, px: f32, py: f32, ctx: &mut UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/display/graph.rs:267:91
+ --> clear-ui/src/widget/display/graph.rs:385:91
|
-267 | ...State, px: f32, py: f32, ctx: &mut UiContext) -> bool {
+385 | ...State, px: f32, py: f32, ctx: &mut UiContext) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/display/usage_bar.rs:35:30
+ --> clear-ui/src/widget/display/usage_bar.rs:35:30
|
35 | fn highlight_quad(&self, ctx: &UiContext) -> Option<(f32, f32, f32, ...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/display/layout_preview.rs:55:30
+ --> clear-ui/src/widget/display/layout_preview.rs:55:30
|
55 | fn highlight_quad(&self, ctx: &UiContext) -> Option<(f32, f32, f32, ...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/display/font_preview.rs:26:30
+ --> clear-ui/src/widget/display/font_preview.rs:26:30
|
26 | fn highlight_quad(&self, ctx: &UiContext) -> Option<(f32, f32, f32, ...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/display/info_box.rs:25:30
+ --> clear-ui/src/widget/display/info_box.rs:25:30
|
25 | fn highlight_quad(&self, ctx: &UiContext) -> Option<(f32, f32, f32, ...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `ctx`
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/widget/display/status_dot.rs:32:30
+ --> clear-ui/src/widget/display/status_dot.rs:32:30
|
32 | fn highlight_quad(&self, ctx: &UiContext) -> Option<(f32, f32, f32, ...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: variable does not need to be mutable
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/layout.rs:1918:31
+ --> clear-ui/src/layout.rs:1992:31
|
-1918 | pub fn with_section_count(mut self, count: usize) -> Self {
+1992 | pub fn with_section_count(mut self, count: usize) -> Self {
| ----^^^^
| |
| help: remove this `mut`
warning: field `min_col_width` is never read
- --> /home/lsgalante/Dropbox/Clear/clear-ui/src/layout.rs:1793:5
+ --> clear-ui/src/layout.rs:1867:5
|
-1791 | pub struct GridLayout {
+1865 | pub struct GridLayout {
| ---------- field in this struct
-1792 | grid: Option<Grid>,
-1793 | min_col_width: f32,
+1866 | grid: Option<Grid>,
+1867 | min_col_width: f32,
| ^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: `clear-ui` (lib) generated 61 warnings (run `cargo fix --lib -p clear-ui` to apply 59 suggestions)
- Compiling cce-design-interface v0.1.0 (/home/lsgalante/Dropbox/Clear/cce-design-interface)
-error[E0425]: cannot find function `get_next_visible_pane` in this scope
- --> src/main.rs:606:20
- |
-606 | assert_eq!(get_next_visible_pane(LEFT_MENUBAR_IDX, true, true, true, false, false), RIGHT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this function
- |
-392 + use crate::app::get_next_visible_pane;
- |
-
-error[E0425]: cannot find value `LEFT_MENUBAR_IDX` in this scope
- --> src/main.rs:606:42
- |
-606 | assert_eq!(get_next_visible_pane(LEFT_MENUBAR_IDX, true, true, true, false, false), RIGHT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::LEFT_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find value `RIGHT_MENUBAR_IDX` in this scope
- --> src/main.rs:606:93
- |
-606 | assert_eq!(get_next_visible_pane(LEFT_MENUBAR_IDX, true, true, true, false, false), RIGHT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::RIGHT_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find function `get_next_visible_pane` in this scope
- --> src/main.rs:607:20
- |
-607 | assert_eq!(get_next_visible_pane(RIGHT_MENUBAR_IDX, true, true, true, false, false), PARAM_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this function
- |
-392 + use crate::app::get_next_visible_pane;
- |
-
-error[E0425]: cannot find value `RIGHT_MENUBAR_IDX` in this scope
- --> src/main.rs:607:42
- |
-607 | assert_eq!(get_next_visible_pane(RIGHT_MENUBAR_IDX, true, true, true, false, false), PARAM_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::RIGHT_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find value `PARAM_MENUBAR_IDX` in this scope
- --> src/main.rs:607:94
- |
-607 | assert_eq!(get_next_visible_pane(RIGHT_MENUBAR_IDX, true, true, true, false, false), PARAM_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::PARAM_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find function `get_next_visible_pane` in this scope
- --> src/main.rs:608:20
- |
-608 | assert_eq!(get_next_visible_pane(PARAM_MENUBAR_IDX, true, true, true, false, false), LEFT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this function
- |
-392 + use crate::app::get_next_visible_pane;
- |
-
-error[E0425]: cannot find value `PARAM_MENUBAR_IDX` in this scope
- --> src/main.rs:608:42
- |
-608 | assert_eq!(get_next_visible_pane(PARAM_MENUBAR_IDX, true, true, true, false, false), LEFT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::PARAM_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find value `LEFT_MENUBAR_IDX` in this scope
- --> src/main.rs:608:94
- |
-608 | assert_eq!(get_next_visible_pane(PARAM_MENUBAR_IDX, true, true, true, false, false), LEFT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::LEFT_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find function `get_next_visible_pane` in this scope
- --> src/main.rs:611:20
- |
-611 | assert_eq!(get_next_visible_pane(LEFT_MENUBAR_IDX, true, true, true, true, false), RIGHT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this function
- |
-392 + use crate::app::get_next_visible_pane;
- |
-
-error[E0425]: cannot find value `LEFT_MENUBAR_IDX` in this scope
- --> src/main.rs:611:42
- |
-611 | assert_eq!(get_next_visible_pane(LEFT_MENUBAR_IDX, true, true, true, true, false), RIGHT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::LEFT_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find value `RIGHT_MENUBAR_IDX` in this scope
- --> src/main.rs:611:92
- |
-611 | assert_eq!(get_next_visible_pane(LEFT_MENUBAR_IDX, true, true, true, true, false), RIGHT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::RIGHT_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find function `get_next_visible_pane` in this scope
- --> src/main.rs:612:20
- |
-612 | assert_eq!(get_next_visible_pane(RIGHT_MENUBAR_IDX, true, true, true, true, false), PARAM_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this function
- |
-392 + use crate::app::get_next_visible_pane;
- |
-
-error[E0425]: cannot find value `RIGHT_MENUBAR_IDX` in this scope
- --> src/main.rs:612:42
- |
-612 | assert_eq!(get_next_visible_pane(RIGHT_MENUBAR_IDX, true, true, true, true, false), PARAM_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::RIGHT_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find value `PARAM_MENUBAR_IDX` in this scope
- --> src/main.rs:612:93
- |
-612 | assert_eq!(get_next_visible_pane(RIGHT_MENUBAR_IDX, true, true, true, true, false), PARAM_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::PARAM_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find function `get_next_visible_pane` in this scope
- --> src/main.rs:613:20
- |
-613 | assert_eq!(get_next_visible_pane(PARAM_MENUBAR_IDX, true, true, true, true, false), SPREADSHEET_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this function
- |
-392 + use crate::app::get_next_visible_pane;
- |
-
-error[E0425]: cannot find value `PARAM_MENUBAR_IDX` in this scope
- --> src/main.rs:613:42
- |
-613 | assert_eq!(get_next_visible_pane(PARAM_MENUBAR_IDX, true, true, true, true, false), SPREADSHEET_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::PARAM_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find value `SPREADSHEET_MENUBAR_IDX` in this scope
- --> src/main.rs:613:93
- |
-613 | assert_eq!(get_next_visible_pane(PARAM_MENUBAR_IDX, true, true, true, true, false), SPREADSHEET_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::SPREADSHEET_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find function `get_next_visible_pane` in this scope
- --> src/main.rs:614:20
- |
-614 | assert_eq!(get_next_visible_pane(SPREADSHEET_MENUBAR_IDX, true, true, true, true, false), LEFT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this function
- |
-392 + use crate::app::get_next_visible_pane;
- |
-
-error[E0425]: cannot find value `SPREADSHEET_MENUBAR_IDX` in this scope
- --> src/main.rs:614:42
- |
-614 | assert_eq!(get_next_visible_pane(SPREADSHEET_MENUBAR_IDX, true, true, true, true, false), LEFT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::SPREADSHEET_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find value `LEFT_MENUBAR_IDX` in this scope
- --> src/main.rs:614:99
- |
-614 | assert_eq!(get_next_visible_pane(SPREADSHEET_MENUBAR_IDX, true, true, true, true, false), LEFT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::LEFT_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find function `get_next_visible_pane` in this scope
- --> src/main.rs:617:20
- |
-617 | assert_eq!(get_next_visible_pane(LEFT_MENUBAR_IDX, true, true, true, false, true), PARAM_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this function
- |
-392 + use crate::app::get_next_visible_pane;
- |
-
-error[E0425]: cannot find value `LEFT_MENUBAR_IDX` in this scope
- --> src/main.rs:617:42
- |
-617 | assert_eq!(get_next_visible_pane(LEFT_MENUBAR_IDX, true, true, true, false, true), PARAM_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::LEFT_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find value `PARAM_MENUBAR_IDX` in this scope
- --> src/main.rs:617:92
- |
-617 | assert_eq!(get_next_visible_pane(LEFT_MENUBAR_IDX, true, true, true, false, true), PARAM_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::PARAM_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find function `get_next_visible_pane` in this scope
- --> src/main.rs:618:20
- |
-618 | assert_eq!(get_next_visible_pane(PARAM_MENUBAR_IDX, true, true, true, false, true), RIGHT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this function
- |
-392 + use crate::app::get_next_visible_pane;
- |
-
-error[E0425]: cannot find value `PARAM_MENUBAR_IDX` in this scope
- --> src/main.rs:618:42
- |
-618 | assert_eq!(get_next_visible_pane(PARAM_MENUBAR_IDX, true, true, true, false, true), RIGHT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::PARAM_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find value `RIGHT_MENUBAR_IDX` in this scope
- --> src/main.rs:618:93
- |
-618 | assert_eq!(get_next_visible_pane(PARAM_MENUBAR_IDX, true, true, true, false, true), RIGHT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::RIGHT_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find function `get_next_visible_pane` in this scope
- --> src/main.rs:619:20
- |
-619 | assert_eq!(get_next_visible_pane(RIGHT_MENUBAR_IDX, true, true, true, false, true), LEFT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this function
- |
-392 + use crate::app::get_next_visible_pane;
- |
-
-error[E0425]: cannot find value `RIGHT_MENUBAR_IDX` in this scope
- --> src/main.rs:619:42
- |
-619 | assert_eq!(get_next_visible_pane(RIGHT_MENUBAR_IDX, true, true, true, false, true), LEFT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::RIGHT_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find value `LEFT_MENUBAR_IDX` in this scope
- --> src/main.rs:619:93
- |
-619 | assert_eq!(get_next_visible_pane(RIGHT_MENUBAR_IDX, true, true, true, false, true), LEFT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::LEFT_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find function `get_next_visible_pane` in this scope
- --> src/main.rs:622:20
- |
-622 | assert_eq!(get_next_visible_pane(LEFT_MENUBAR_IDX, true, true, true, true, true), SPREADSHEET_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this function
- |
-392 + use crate::app::get_next_visible_pane;
- |
-
-error[E0425]: cannot find value `LEFT_MENUBAR_IDX` in this scope
- --> src/main.rs:622:42
- |
-622 | assert_eq!(get_next_visible_pane(LEFT_MENUBAR_IDX, true, true, true, true, true), SPREADSHEET_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::LEFT_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find value `SPREADSHEET_MENUBAR_IDX` in this scope
- --> src/main.rs:622:91
- |
-622 | assert_eq!(get_next_visible_pane(LEFT_MENUBAR_IDX, true, true, true, true, true), SPREADSHEET_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::SPREADSHEET_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find function `get_next_visible_pane` in this scope
- --> src/main.rs:623:20
- |
-623 | assert_eq!(get_next_visible_pane(SPREADSHEET_MENUBAR_IDX, true, true, true, true, true), PARAM_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this function
+ Compiling cce-design-interface v0.1.0 (/home/lsgalante/Dropbox/cce/cce-design-interface)
+error[E0433]: cannot find type `GAttribute` in this scope
+ --> cce-design-interface/src/main.rs:533:41
|
-392 + use crate::app::get_next_visible_pane;
+533 | attrs1.insert("UV".to_string(), GAttribute::Float2([0.1, 0.2]));
+ | ^^^^^^^^^^ use of undeclared type `GAttribute`
|
-
-error[E0425]: cannot find value `SPREADSHEET_MENUBAR_IDX` in this scope
- --> src/main.rs:623:42
- |
-623 | assert_eq!(get_next_visible_pane(SPREADSHEET_MENUBAR_IDX, true, true, true, true, true), PARAM_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::SPREADSHEET_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find value `PARAM_MENUBAR_IDX` in this scope
- --> src/main.rs:623:98
- |
-623 | assert_eq!(get_next_visible_pane(SPREADSHEET_MENUBAR_IDX, true, true, true, true, true), PARAM_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::PARAM_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find function `get_next_visible_pane` in this scope
- --> src/main.rs:624:20
- |
-624 | assert_eq!(get_next_visible_pane(PARAM_MENUBAR_IDX, true, true, true, true, true), RIGHT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this function
- |
-392 + use crate::app::get_next_visible_pane;
- |
-
-error[E0425]: cannot find value `PARAM_MENUBAR_IDX` in this scope
- --> src/main.rs:624:42
- |
-624 | assert_eq!(get_next_visible_pane(PARAM_MENUBAR_IDX, true, true, true, true, true), RIGHT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::PARAM_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find value `RIGHT_MENUBAR_IDX` in this scope
- --> src/main.rs:624:92
- |
-624 | assert_eq!(get_next_visible_pane(PARAM_MENUBAR_IDX, true, true, true, true, true), RIGHT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
- |
-392 + use crate::app::RIGHT_MENUBAR_IDX;
- |
-
-error[E0425]: cannot find function `get_next_visible_pane` in this scope
- --> src/main.rs:625:20
- |
-625 | assert_eq!(get_next_visible_pane(RIGHT_MENUBAR_IDX, true, true, true, true, true), LEFT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this function
- |
-392 + use crate::app::get_next_visible_pane;
- |
-
-error[E0425]: cannot find value `RIGHT_MENUBAR_IDX` in this scope
- --> src/main.rs:625:42
- |
-625 | assert_eq!(get_next_visible_pane(RIGHT_MENUBAR_IDX, true, true, true, true, true), LEFT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^^ not found in this scope
- |
-help: consider importing this constant
+help: consider importing this enum
|
-392 + use crate::app::RIGHT_MENUBAR_IDX;
+267 + use crate::geometry::GAttribute;
|
-error[E0425]: cannot find value `LEFT_MENUBAR_IDX` in this scope
- --> src/main.rs:625:92
+error[E0433]: cannot find type `GAttribute` in this scope
+ --> cce-design-interface/src/main.rs:534:41
|
-625 | assert_eq!(get_next_visible_pane(RIGHT_MENUBAR_IDX, true, true, true, true, true), LEFT_MENUBAR_IDX);
- | ^^^^^^^^^^^^^^^^ not found in this scope
+534 | attrs1.insert("ID".to_string(), GAttribute::Float(42.0));
+ | ^^^^^^^^^^ use of undeclared type `GAttribute`
|
-help: consider importing this constant
+help: consider importing this enum
|
-392 + use crate::app::LEFT_MENUBAR_IDX;
+267 + use crate::geometry::GAttribute;
|
-error[E0433]: cannot find type `Shortcut` in this scope
- --> src/main.rs:824:22
+error[E0422]: cannot find struct, variant or union type `GVertex` in this scope
+ --> cce-design-interface/src/main.rs:536:18
|
-824 | let ctrl_g = Shortcut::parse("Ctrl+g").unwrap();
- | ^^^^^^^^ use of undeclared type `Shortcut`
+536 | let v1 = GVertex {
+ | ^^^^^^^ not found in this scope
|
help: consider importing this struct
|
-392 + use crate::shortcut::Shortcut;
+267 + use crate::geometry::GVertex;
|
-error[E0433]: cannot find type `Shortcut` in this scope
- --> src/main.rs:832:23
+error[E0433]: cannot find type `GAttribute` in this scope
+ --> cce-design-interface/src/main.rs:543:43
|
-832 | let complex = Shortcut::parse("Ctrl+Shift+Alt+Logo+s").unwrap();
- | ^^^^^^^^ use of undeclared type `Shortcut`
+543 | attrs2.insert("Norm".to_string(), GAttribute::Float3([0.0, 1.0, 0.0]));
+ | ^^^^^^^^^^ use of undeclared type `GAttribute`
|
-help: consider importing this struct
+help: consider importing this enum
|
-392 + use crate::shortcut::Shortcut;
+267 + use crate::geometry::GAttribute;
|
-error[E0433]: cannot find type `Shortcut` in this scope
- --> src/main.rs:840:22
+error[E0433]: cannot find type `GAttribute` in this scope
+ --> cce-design-interface/src/main.rs:544:41
|
-840 | let tab_sc = Shortcut::parse("Tab").unwrap();
- | ^^^^^^^^ use of undeclared type `Shortcut`
+544 | attrs2.insert("UV".to_string(), GAttribute::Float2([0.3, 0.4]));
+ | ^^^^^^^^^^ use of undeclared type `GAttribute`
|
-help: consider importing this struct
+help: consider importing this enum
|
-392 + use crate::shortcut::Shortcut;
+267 + use crate::geometry::GAttribute;
|
-error[E0433]: cannot find type `Shortcut` in this scope
- --> src/main.rs:844:23
+error[E0422]: cannot find struct, variant or union type `GVertex` in this scope
+ --> cce-design-interface/src/main.rs:546:18
|
-844 | let case_sc = Shortcut::parse("cTrL+sHiFt+ArrowDown").unwrap();
- | ^^^^^^^^ use of undeclared type `Shortcut`
+546 | let v2 = GVertex {
+ | ^^^^^^^ not found in this scope
|
help: consider importing this struct
|
-392 + use crate::shortcut::Shortcut;
+267 + use crate::geometry::GVertex;
|
-error[E0433]: cannot find type `ShortcutManager` in this scope
- --> src/main.rs:850:23
+error[E0422]: cannot find struct, variant or union type `Geometry` in this scope
+ --> cce-design-interface/src/main.rs:552:25
|
-850 | let mut mgr = ShortcutManager::new();
- | ^^^^^^^^^^^^^^^ use of undeclared type `ShortcutManager`
+552 | let mut geom1 = Geometry { vertices: vec![v1] };
+ | ^^^^^^^^ not found in this scope
|
help: consider importing this struct
|
-392 + use crate::shortcut::ShortcutManager;
+267 + use crate::geometry::Geometry;
|
-error[E0433]: cannot find type `Action` in this scope
- --> src/main.rs:851:32
- |
-851 | mgr.register("Ctrl+g", Action::ToggleGrid).unwrap();
- | ^^^^^^ use of undeclared type `Action`
- |
-help: an enum with a similar name exists
- |
-851 - mgr.register("Ctrl+g", Action::ToggleGrid).unwrap();
-851 + mgr.register("Ctrl+g", Option::ToggleGrid).unwrap();
- |
-help: consider importing this enum
+error[E0422]: cannot find struct, variant or union type `Geometry` in this scope
+ --> cce-design-interface/src/main.rs:553:21
|
-392 + use crate::shortcut::Action;
+553 | let geom2 = Geometry { vertices: vec![v2] };
+ | ^^^^^^^^ not found in this scope
|
-
-error[E0433]: cannot find type `Action` in this scope
- --> src/main.rs:852:27
- |
-852 | mgr.register("`", Action::ToggleSpreadsheet).unwrap();
- | ^^^^^^ use of undeclared type `Action`
- |
-help: an enum with a similar name exists
- |
-852 - mgr.register("`", Action::ToggleSpreadsheet).unwrap();
-852 + mgr.register("`", Option::ToggleSpreadsheet).unwrap();
- |
-help: consider importing this enum
- |
-392 + use crate::shortcut::Action;
- |
-
-error[E0433]: cannot find type `Action` in this scope
- --> src/main.rs:857:63
- |
-857 | assert_eq!(mgr.match_action(&mods_ctrl, &key_g), Some(Action::ToggleGrid));
- | ^^^^^^ use of undeclared type `Action`
- |
-help: an enum with a similar name exists
- |
-857 - assert_eq!(mgr.match_action(&mods_ctrl, &key_g), Some(Action::ToggleGrid));
-857 + assert_eq!(mgr.match_action(&mods_ctrl, &key_g), Some(Option::ToggleGrid));
- |
-help: consider importing this enum
+help: consider importing this struct
|
-392 + use crate::shortcut::Action;
+267 + use crate::geometry::Geometry;
|
-error[E0433]: cannot find type `Action` in this scope
- --> src/main.rs:866:66
+error[E0425]: cannot find function `line_vertices` in this scope
+ --> cce-design-interface/src/main.rs:608:20
|
-866 | assert_eq!(mgr.match_action(&mods_none, &key_tick), Some(Action::ToggleSpreadsheet));
- | ^^^^^^ use of undeclared type `Action`
+608 | let geom = line_vertices(start, end, 0.02);
+ | ^^^^^^^^^^^^^ not found in this scope
|
-help: an enum with a similar name exists
- |
-866 - assert_eq!(mgr.match_action(&mods_none, &key_tick), Some(Action::ToggleSpreadsheet));
-866 + assert_eq!(mgr.match_action(&mods_none, &key_tick), Some(Option::ToggleSpreadsheet));
- |
-help: consider importing this enum
+help: consider importing this function
|
-392 + use crate::shortcut::Action;
+267 + use crate::geometry::line_vertices;
|
warning: unused import: `std::time::Instant`
- --> src/main.rs:1:5
+ --> cce-design-interface/src/main.rs:1:5
|
1 | use std::time::Instant;
| ^^^^^^^^^^^^^^^^^^
@@ -976,94 +497,88 @@ warning: unused import: `std::time::Instant`
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused imports: `Deserialize` and `Serialize`
- --> src/main.rs:7:13
+ --> cce-design-interface/src/main.rs:5:13
|
-7 | use serde::{Deserialize, Serialize};
+5 | use serde::{Deserialize, Serialize};
| ^^^^^^^^^^^ ^^^^^^^^^
warning: unused imports: `ElementState`, `KeyEvent`, `MouseButton`, and `MouseScrollDelta`
- --> src/main.rs:9:24
+ --> cce-design-interface/src/main.rs:7:24
|
-9 | use clear_ui::widget::{ElementState, MouseButton, MouseScrollDelta, KeyEvent, Key, NamedKey};
+7 | use clear_ui::widget::{ElementState, MouseButton, MouseScrollDelta, KeyEvent, Key, NamedKey};
| ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^
warning: unused imports: `Capability`, `CompositorHandler`, `CursorIcon`, `PointerHandler`, `ProvidesRegistryState`, `SeatHandler`, `ShmHandler`, `ThemeSpec`, `ThemedPointer`, `Window as XdgWindow`, `WindowConfigure`, `WindowDecorations`, `WindowHandler`, `delegate_compositor`, `delegate_keyboard`, `delegate_output`, `delegate_pointer`, `delegate_registry`, `delegate_seat`, `delegate_shm`, `delegate_xdg_shell`, `delegate_xdg_window`, and `keyboard::KeyboardHandler`
- --> src/main.rs:12:18
+ --> cce-design-interface/src/main.rs:10:18
|
-12 | compositor::{CompositorHandler, CompositorState},
+10 | compositor::{CompositorHandler, CompositorState},
| ^^^^^^^^^^^^^^^^^
-13 | delegate_compositor, delegate_keyboard, delegate_pointer, delegate_registry,
+11 | delegate_compositor, delegate_keyboard, delegate_pointer, delegate_registry,
| ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
-14 | delegate_seat, delegate_shm, delegate_xdg_shell, delegate_xdg_window, delegate_output,
+12 | delegate_seat, delegate_shm, delegate_xdg_shell, delegate_xdg_window, delegate_output,
| ^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^
-15 | registry::{ProvidesRegistryState, RegistryState},
+13 | registry::{ProvidesRegistryState, RegistryState},
| ^^^^^^^^^^^^^^^^^^^^^
...
-18 | keyboard::KeyboardHandler,
+16 | keyboard::KeyboardHandler,
| ^^^^^^^^^^^^^^^^^^^^^^^^^
-19 | pointer::{PointerHandler, ThemedPointer, ThemeSpec, CursorIcon},
+17 | pointer::{PointerHandler, ThemedPointer, ThemeSpec, CursorIcon},
| ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^
-20 | Capability, SeatHandler, SeatState,
+18 | Capability, SeatHandler, SeatState,
| ^^^^^^^^^^ ^^^^^^^^^^^
...
-24 | window::{Window as XdgWindow, WindowConfigure, WindowHandler, WindowDecorations},
+22 | window::{Window as XdgWindow, WindowConfigure, WindowHandler, WindowDecorations},
| ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
...
-29 | shm::{Shm, ShmHandler},
+26 | shm::{Shm, ShmHandler},
| ^^^^^^^^^^
-warning: unused imports: `Proxy`, `QueueHandle`, `wl_keyboard`, `wl_output`, `wl_pointer`, `wl_seat`, `wl_shm`, and `wl_surface`
- --> src/main.rs:33:16
+warning: unused imports: `QueueHandle`, `wl_keyboard`, `wl_output`, `wl_pointer`, `wl_seat`, `wl_shm`, and `wl_surface`
+ --> cce-design-interface/src/main.rs:30:16
|
-33 | protocol::{wl_keyboard, wl_output, wl_pointer, wl_seat, wl_shm, wl_surface},
+30 | protocol::{wl_keyboard, wl_output, wl_pointer, wl_seat, wl_shm, wl_surface},
| ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ ^^^^^^ ^^^^^^^^^^
-34 | Connection, QueueHandle, Proxy,
- | ^^^^^^^^^^^ ^^^^^
-
-warning: unused import: `wgpu::util::DeviceExt`
- --> src/main.rs:38:5
- |
-38 | use wgpu::util::DeviceExt;
- | ^^^^^^^^^^^^^^^^^^^^^
+31 | Connection, QueueHandle, Proxy,
+ | ^^^^^^^^^^^
-warning: unused imports: `Breadcrumb`, `Button`, `Canvas`, `Checkbox`, `ColorSelector`, `GraphNode`, `Graph`, `Label`, `MenuBar`, `Paginator`, `ParametersBg`, `Plate`, `ScrollingList`, `Slider`, `Spinbox`, `Splitter`, `Spreadsheet`, `StatusBar`, `Switcher`, `TextLabel`, and `ViewportBg`
- --> src/main.rs:39:24
+warning: unused imports: `Breadcrumb`, `Button`, `Canvas`, `Checkbox`, `ColorSelector`, `GraphNode`, `Graph`, `Label`, `MenuBar`, `Paginator`, `ParametersBg`, `Plate`, `ScrollingList`, `Slider`, `Spinbox`, `Splitter`, `Spreadsheet`, `StatusBar`, `Switcher`, and `ViewportBg`
+ --> cce-design-interface/src/main.rs:35:24
|
-39 | ...::{Breadcrumb, Canvas, MenuBar, Plate, ParametersBg, Splitter, Spreadsheet, StatusBar, TextLabel, ViewportBg, Element, GraphNode, Graph, Paginator, Button, Checkbox, Slider, Spinbox, ScrollingList, Label, ColorSelector, Switcher};
- | ^^^^^^^^^^ ^^^^^^ ^^^^^^^ ^^^^^ ^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^ ^^^^^^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^
+35 | ...::{Breadcrumb, Canvas, MenuBar, Plate, ParametersBg, Splitter, Spreadsheet, StatusBar, ViewportBg, GraphNode, Graph, Paginator, Button, Checkbox, Slider, Spinbox, ScrollingList, Label, ColorSelector, Switcher};
+ | ^^^^^^^^^^ ^^^^^^ ^^^^^^^ ^^^^^ ^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^ ^^^^^^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^
-warning: unused import: `clear_ui::colors`
- --> src/main.rs:40:5
+warning: unused import: `wgpu::util::DeviceExt`
+ --> cce-design-interface/src/main.rs:36:5
|
-40 | use clear_ui::colors;
- | ^^^^^^^^^^^^^^^^
+36 | use wgpu::util::DeviceExt;
+ | ^^^^^^^^^^^^^^^^^^^^^
warning: unused imports: `Attrs`, `Buffer`, `Cache`, `FontSystem`, `Metrics`, `Resolution`, `SwashCache`, `TextArea`, `TextAtlas`, `TextBounds`, `TextRenderer`, and `Viewport`
- --> src/main.rs:41:15
+ --> cce-design-interface/src/main.rs:37:15
|
-41 | ...::{Attrs, Buffer, Cache, FontSystem, Metrics, Resolution, SwashCache, TextArea, TextAtlas, TextBounds, TextRenderer, Viewport};
+37 | ...::{Attrs, Buffer, Cache, FontSystem, Metrics, Resolution, SwashCache, TextArea, TextAtlas, TextBounds, TextRenderer, Viewport};
| ^^^^^ ^^^^^^ ^^^^^ ^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^
warning: unused import: `Mat4`
- --> src/main.rs:42:12
+ --> cce-design-interface/src/main.rs:38:12
|
-42 | use glam::{Mat4, Vec3};
+38 | use glam::{Mat4, Vec3};
| ^^^^
warning: unused import: `std::net::TcpListener`
- --> src/app.rs:4:5
+ --> cce-design-interface/src/app.rs:4:5
|
4 | use std::net::TcpListener;
| ^^^^^^^^^^^^^^^^^^^^^
-warning: unused import: `BufReader`
- --> src/app.rs:5:24
+warning: unused import: `std::io::BufReader`
+ --> cce-design-interface/src/app.rs:5:5
|
-5 | use std::io::{BufRead, BufReader, Read, Write};
- | ^^^^^^^^^
+5 | use std::io::BufReader;
+ | ^^^^^^^^^^^^^^^^^^
warning: unused imports: `Capability`, `CompositorHandler`, `CursorIcon`, `OutputHandler`, `OutputState`, `PointerHandler`, `ProvidesRegistryState`, `RegistryState`, `SeatHandler`, `SeatState`, `ShmHandler`, `Shm`, `ThemeSpec`, `ThemedPointer`, `WindowConfigure`, `delegate_compositor`, `delegate_keyboard`, `delegate_output`, `delegate_pointer`, `delegate_registry`, `delegate_seat`, `delegate_shm`, `delegate_xdg_shell`, `delegate_xdg_window`, and `keyboard::KeyboardHandler`
- --> src/app.rs:12:18
+ --> cce-design-interface/src/app.rs:12:18
|
12 | compositor::{CompositorHandler, CompositorState},
| ^^^^^^^^^^^^^^^^^
@@ -1083,14 +598,14 @@ warning: unused imports: `Capability`, `CompositorHandler`, `CursorIcon`, `Outpu
20 | Capability, SeatHandler, SeatState,
| ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^
...
-24 | window::{Window as XdgWindow, WindowConfigure, WindowHandler, WindowDecorations},
+24 | window::{Window as XdgWindow, WindowConfigure, WindowDecorations},
| ^^^^^^^^^^^^^^^
...
29 | shm::{Shm, ShmHandler},
| ^^^ ^^^^^^^^^^
warning: unused imports: `globals::registry_queue_init`, `wl_keyboard`, `wl_output`, `wl_pointer`, `wl_seat`, and `wl_shm`
- --> src/app.rs:32:5
+ --> cce-design-interface/src/app.rs:32:5
|
32 | globals::registry_queue_init,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1098,97 +613,97 @@ warning: unused imports: `globals::registry_queue_init`, `wl_keyboard`, `wl_outp
| ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ ^^^^^^
warning: unused import: `calloop_wayland_source::WaylandSource`
- --> src/app.rs:36:5
+ --> cce-design-interface/src/app.rs:36:5
|
36 | use calloop_wayland_source::WaylandSource;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-warning: unused import: `Switcher`
- --> src/app.rs:39:241
+warning: unused imports: `ColorSelector`, `Slider`, `Spinbox`, and `Switcher`
+ --> cce-design-interface/src/app.rs:39:187
+ |
+39 | ...ph, Paginator, Button, Checkbox, Slider, Spinbox, ScrollingList, Label, ColorSelector, Switcher};
+ | ^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^
+
+warning: unused import: `clear_ui::engine::quad_vertices_with_clip`
+ --> cce-design-interface/src/app.rs:41:5
|
-39 | ...kbox, Slider, Spinbox, ScrollingList, Label, ColorSelector, Switcher};
- | ^^^^^^^^
+41 | use clear_ui::engine::quad_vertices_with_clip;
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused imports: `SwashCache`, `TextArea`, and `TextBounds`
- --> src/app.rs:42:70
+ --> cce-design-interface/src/app.rs:42:70
|
42 | use glyphon::{Attrs, Buffer, Cache, FontSystem, Metrics, Resolution, SwashCache, TextArea, TextAtlas, TextBounds, TextRenderer, View...
| ^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^
warning: unused import: `crate::project::*`
- --> src/app.rs:46:5
+ --> cce-design-interface/src/app.rs:46:5
|
46 | use crate::project::*;
| ^^^^^^^^^^^^^^^^^
warning: unused import: `crate::render::*`
- --> src/app.rs:47:5
+ --> cce-design-interface/src/app.rs:47:5
|
47 | use crate::render::*;
| ^^^^^^^^^^^^^^^^
warning: unused import: `Shortcut`
- --> src/app.rs:48:23
+ --> cce-design-interface/src/app.rs:48:23
|
48 | use crate::shortcut::{Shortcut, ShortcutManager, Action};
| ^^^^^^^^
warning: unused import: `LocalPosition`
- --> src/app.rs:51:44
+ --> cce-design-interface/src/app.rs:51:44
|
51 | use crate::window::{AppState, WindowEvent, LocalPosition};
| ^^^^^^^^^^^^^
warning: unused import: `clear_ui::engine::Vertex`
- --> src/graphics.rs:1:5
+ --> cce-design-interface/src/graphics.rs:1:5
|
1 | use clear_ui::engine::Vertex;
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `std::time::Instant`
- --> src/window.rs:1:5
+ --> cce-design-interface/src/window.rs:1:5
|
1 | use std::time::Instant;
| ^^^^^^^^^^^^^^^^^^
warning: unused import: `std::fs`
- --> src/window.rs:2:5
+ --> cce-design-interface/src/window.rs:2:5
|
2 | use std::fs;
| ^^^^^^^
warning: unused import: `std::net::TcpListener`
- --> src/window.rs:4:5
+ --> cce-design-interface/src/window.rs:4:5
|
4 | use std::net::TcpListener;
| ^^^^^^^^^^^^^^^^^^^^^
-warning: unused imports: `BufReader` and `Write`
- --> src/window.rs:5:24
- |
-5 | use std::io::{BufRead, BufReader, Read, Write};
- | ^^^^^^^^^ ^^^^^
-
warning: unused imports: `Deserialize` and `Serialize`
- --> src/window.rs:7:13
+ --> cce-design-interface/src/window.rs:7:13
|
7 | use serde::{Deserialize, Serialize};
| ^^^^^^^^^^^ ^^^^^^^^^
warning: unused imports: `ElementState`, `KeyEvent`, `Key`, `MouseButton`, `MouseScrollDelta`, and `NamedKey`
- --> src/window.rs:9:24
+ --> cce-design-interface/src/window.rs:9:24
|
9 | use clear_ui::widget::{ElementState, MouseButton, MouseScrollDelta, KeyEvent, Key, NamedKey};
| ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^ ^^^^^^^^
warning: unused import: `WindowDecorations`
- --> src/window.rs:24:75
+ --> cce-design-interface/src/window.rs:24:75
|
24 | window::{Window as XdgWindow, WindowConfigure, WindowHandler, WindowDecorations},
| ^^^^^^^^^^^^^^^^^
warning: unused imports: `Proxy`, `globals::registry_queue_init`, and `wl_shm`
- --> src/window.rs:32:5
+ --> cce-design-interface/src/window.rs:32:5
|
32 | globals::registry_queue_init,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1198,310 +713,90 @@ warning: unused imports: `Proxy`, `globals::registry_queue_init`, and `wl_shm`
| ^^^^^
warning: unused import: `calloop_wayland_source::WaylandSource`
- --> src/window.rs:36:5
+ --> cce-design-interface/src/window.rs:36:5
|
36 | use calloop_wayland_source::WaylandSource;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `wgpu::util::DeviceExt`
- --> src/window.rs:38:5
+ --> cce-design-interface/src/window.rs:38:5
|
38 | use wgpu::util::DeviceExt;
| ^^^^^^^^^^^^^^^^^^^^^
warning: unused imports: `Breadcrumb`, `Button`, `Canvas`, `Checkbox`, `ColorSelector`, `GraphNode`, `Graph`, `Label`, `MenuBar`, `Paginator`, `ParametersBg`, `Plate`, `ScrollingList`, `Slider`, `Spinbox`, `Splitter`, `Spreadsheet`, `StatusBar`, `Switcher`, `TextLabel`, and `ViewportBg`
- --> src/window.rs:39:24
+ --> cce-design-interface/src/window.rs:39:24
|
39 | ...::{Breadcrumb, Canvas, MenuBar, Plate, ParametersBg, Splitter, Spreadsheet, StatusBar, TextLabel, ViewportBg, Element, GraphNode, Graph, Paginator, Button, Checkbox, Slider, Spinbox, ScrollingList, Label, ColorSelector, Switcher};
| ^^^^^^^^^^ ^^^^^^ ^^^^^^^ ^^^^^ ^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^ ^^^^^^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^
warning: unused import: `clear_ui::colors`
- --> src/window.rs:40:5
+ --> cce-design-interface/src/window.rs:40:5
|
40 | use clear_ui::colors;
| ^^^^^^^^^^^^^^^^
warning: unused imports: `Attrs`, `Buffer`, `Cache`, `FontSystem`, `Metrics`, `Resolution`, `SwashCache`, `TextArea`, `TextAtlas`, `TextBounds`, `TextRenderer`, and `Viewport`
- --> src/window.rs:41:15
+ --> cce-design-interface/src/window.rs:41:15
|
41 | ...::{Attrs, Buffer, Cache, FontSystem, Metrics, Resolution, SwashCache, TextArea, TextAtlas, TextBounds, TextRenderer, Viewport};
| ^^^^^ ^^^^^^ ^^^^^ ^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^
warning: unused imports: `Mat4` and `Vec3`
- --> src/window.rs:42:12
+ --> cce-design-interface/src/window.rs:42:12
|
42 | use glam::{Mat4, Vec3};
| ^^^^ ^^^^
warning: unused import: `crate::geometry::*`
- --> src/window.rs:44:5
+ --> cce-design-interface/src/window.rs:44:5
|
44 | use crate::geometry::*;
| ^^^^^^^^^^^^^^^^^^
warning: unused import: `crate::project::*`
- --> src/window.rs:45:5
+ --> cce-design-interface/src/window.rs:45:5
|
45 | use crate::project::*;
| ^^^^^^^^^^^^^^^^^
warning: unused import: `crate::render::*`
- --> src/window.rs:46:5
+ --> cce-design-interface/src/window.rs:46:5
|
46 | use crate::render::*;
| ^^^^^^^^^^^^^^^^
warning: unused imports: `ShortcutManager` and `Shortcut`
- --> src/window.rs:47:23
+ --> cce-design-interface/src/window.rs:47:23
|
47 | use crate::shortcut::{Shortcut, ShortcutManager, Action};
| ^^^^^^^^ ^^^^^^^^^^^^^^^
warning: unused imports: `DesignSettings`, `NODE_PALETTE_IDX`, and `NodePalette`
- --> src/window.rs:48:78
+ --> cce-design-interface/src/window.rs:48:78
|
48 | ...tion, ModifiersState, TouchPhase, DesignSettings, param_display, NodePalette, NODE_PALETTE_IDX, LEFT_MENUBAR_IDX, RIGHT_MENUBAR_I...
| ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
warning: unused import: `clear_ui::engine::Vertex`
- --> src/window.rs:49:5
+ --> cce-design-interface/src/window.rs:49:5
|
49 | use clear_ui::engine::Vertex;
| ^^^^^^^^^^^^^^^^^^^^^^^^
-warning: unused import: `PathBuf`
- --> src/project.rs:2:23
- |
-2 | use std::path::{Path, PathBuf};
- | ^^^^^^^
-
-warning: unused import: `std::time::Instant`
- --> src/project.rs:3:5
- |
-3 | use std::time::Instant;
- | ^^^^^^^^^^^^^^^^^^
-
-warning: unused import: `std::time::Instant`
- --> src/render.rs:1:5
- |
-1 | use std::time::Instant;
- | ^^^^^^^^^^^^^^^^^^
-
-warning: unused import: `std::path::Path`
- --> src/render.rs:2:5
- |
-2 | use std::path::Path;
- | ^^^^^^^^^^^^^^^
-
-warning: unused imports: `CustomEvent`, `HEADER_H`, `SPLITTER1_IDX`, `SPLITTER2_IDX`, and `SPLITTER_W`
- --> src/render.rs:10:20
- |
-10 | State, FsNode, CustomEvent,
- | ^^^^^^^^^^^
-...
-14 | SPREADSHEET_MENUBAR_IDX, SPLITTER1_IDX, SPLITTER2_IDX,
- | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^
-15 | MENUBAR_H, STATUS_H, HEADER_H, SPLITTER_W,
- | ^^^^^^^^ ^^^^^^^^^^
-
-warning: unused import: `network_sphere_vertices_with_errors`
- --> src/render.rs:22:5
- |
-22 | network_sphere_vertices_with_errors,
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
warning: unused imports: `ParamDef`, `TouchPhase`, and `param_display`
- --> src/main.rs:53:59
- |
-53 | ...ion, ModifiersState, TouchPhase, DesignSettings, param_display, FsNode, Project, ProjectViewState, ParamDef};
- | ^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^
-
-warning: unused import: `api::start_http_server`
- --> src/main.rs:55:5
- |
-55 | use api::start_http_server;
- | ^^^^^^^^^^^^^^^^^^^^^^
-
-warning: unused import: `project::*`
- --> src/main.rs:57:5
- |
-57 | use project::*;
- | ^^^^^^^^^^
-
-warning: unused import: `render::*`
- --> src/main.rs:58:5
- |
-58 | use render::*;
- | ^^^^^^^^^
-
-warning: use of deprecated type alias `wgpu::ImageCopyTexture`: This has been renamed to `TexelCopyTextureInfo`, and will be removed in 25.0.0.
- --> src/app.rs:5548:23
- |
-5548 | wgpu::ImageCopyTexture {
- | ^^^^^^^^^^^^^^^^
- |
- = note: `#[warn(deprecated)]` on by default
-
-warning: use of deprecated type alias `wgpu::ImageCopyTexture`: This has been renamed to `TexelCopyTextureInfo`, and will be removed in 25.0.0.
- --> src/app.rs:5554:23
- |
-5554 | wgpu::ImageCopyTexture {
- | ^^^^^^^^^^^^^^^^
-
-warning: use of deprecated associated function `opencl3::command_queue::CommandQueue::create`: From CL_VERSION_2_0 use create_command_queue_with_properties
- --> src/geometry.rs:400:40
+ --> cce-design-interface/src/main.rs:268:142
|
-400 | let queue = unsafe { CommandQueue::create(&context, device_id, 0) }.ok()?;
- | ^^^^^^
-
-warning: unused import: `Write`
- --> src/app.rs:5:41
- |
-5 | use std::io::{BufRead, BufReader, Read, Write};
- | ^^^^^
+268 | ...MENUBAR_IDX, DesignSettings, param_display, FsNode, Project, ProjectViewState, ParamDef, TouchPhase};
+ | ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^
-warning: unused import: `BufRead`
- --> src/app.rs:5:15
- |
-5 | use std::io::{BufRead, BufReader, Read, Write};
- | ^^^^^^^
-
-warning: unused import: `Read`
- --> src/app.rs:5:35
- |
-5 | use std::io::{BufRead, BufReader, Read, Write};
- | ^^^^
-
-warning: unused import: `WindowHandler`
- --> src/app.rs:24:60
+warning: unused import: `Proxy`
+ --> cce-design-interface/src/main.rs:31:30
|
-24 | window::{Window as XdgWindow, WindowConfigure, WindowHandler, WindowDecorations},
- | ^^^^^^^^^^^^^
-
-warning: unused import: `WaylandSurface`
- --> src/window.rs:27:9
- |
-27 | WaylandSurface,
- | ^^^^^^^^^^^^^^
-
-warning: unused import: `Read`
- --> src/window.rs:5:35
- |
-5 | use std::io::{BufRead, BufReader, Read, Write};
- | ^^^^
-
-warning: unused import: `BufRead`
- --> src/window.rs:5:15
- |
-5 | use std::io::{BufRead, BufReader, Read, Write};
- | ^^^^^^^
-
-warning: unused import: `Element`
- --> src/project.rs:5:32
- |
-5 | use clear_ui::widget::{Button, Element};
- | ^^^^^^^
-
-warning: unused import: `OutputHandler`
- --> src/main.rs:16:14
- |
-16 | output::{OutputHandler, OutputState},
- | ^^^^^^^^^^^^^
-
-warning: unused import: `WaylandSurface`
- --> src/main.rs:27:9
- |
-27 | WaylandSurface,
- | ^^^^^^^^^^^^^^
-
-warning: unused import: `Element`
- --> src/main.rs:39:131
- |
-39 | ...Bg, Splitter, Spreadsheet, StatusBar, TextLabel, ViewportBg, Element, GraphNode, Graph, Paginator, Button, Checkbox, Slider, Spin...
- | ^^^^^^^
-
-warning: unused variable: `surface`
- --> src/app.rs:2036:13
- |
-2036 | let surface = &wgpu_adapter.surface;
- | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_surface`
- |
- = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
-
-warning: variable `sp_menub_y` is assigned to, but never used
- --> src/app.rs:3137:21
- |
-3137 | let mut sp_menub_y = 0.0;
- | ^^^^^^^^^^^^^^
- |
- = note: consider using `_sp_menub_y` instead
-
-warning: variable `sp_menub_h` is assigned to, but never used
- --> src/app.rs:3138:21
- |
-3138 | let mut sp_menub_h = 0.0;
- | ^^^^^^^^^^^^^^
- |
- = note: consider using `_sp_menub_h` instead
-
-warning: value assigned to `sp_menub_y` is never read
- --> src/app.rs:3156:25
- |
-3156 | sp_menub_y = 0.0;
- | ^^^^^^^^^^^^^^^^
- |
- = help: maybe it is overwritten before being read?
- = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
-
-warning: value assigned to `sp_menub_y` is never read
- --> src/app.rs:3148:25
- |
-3148 | sp_menub_y = 0.0;
- | ^^^^^^^^^^^^^^^^
- |
- = help: maybe it is overwritten before being read?
-
-warning: value assigned to `sp_menub_h` is never read
- --> src/app.rs:3157:25
- |
-3157 | sp_menub_h = 0.0;
- | ^^^^^^^^^^^^^^^^
- |
- = help: maybe it is overwritten before being read?
-
-warning: value assigned to `sp_menub_h` is never read
- --> src/app.rs:3149:25
- |
-3149 | sp_menub_h = 0.0;
- | ^^^^^^^^^^^^^^^^
- |
- = help: maybe it is overwritten before being read?
-
-warning: unused variable: `cx`
- --> src/window.rs:276:22
- |
-276 | let (cx, cy) = clear_ui::wayland::scale_pointer_pos(event.position, st.scale);
- | ^^ help: if this is intentional, prefix it with an underscore: `_cx`
-
-warning: unused variable: `cy`
- --> src/window.rs:276:26
- |
-276 | let (cx, cy) = clear_ui::wayland::scale_pointer_pos(event.position, st.scale);
- | ^^ help: if this is intentional, prefix it with an underscore: `_cy`
-
-warning: unused variable: `idx`
- --> src/geometry.rs:656:17
- |
-656 | let idx = *count;
- | ^^^ help: if this is intentional, prefix it with an underscore: `_idx`
-
-warning: unused variable: `idx`
- --> src/geometry.rs:665:17
- |
-665 | let idx = *count;
- | ^^^ help: if this is intentional, prefix it with an underscore: `_idx`
+31 | Connection, QueueHandle, Proxy,
+ | ^^^^^
-Some errors have detailed explanations: E0425, E0433.
-For more information about an error, try `rustc --explain E0425`.
-warning: `cce-design-interface` (bin "cce-design-interface" test) generated 77 warnings
-error: could not compile `cce-design-interface` (bin "cce-design-interface" test) due to 51 previous errors; 77 warnings emitted
+Some errors have detailed explanations: E0422, E0425, E0433.
+For more information about an error, try `rustc --explain E0422`.
+warning: `cce-design-interface` (bin "cce-design-interface" test) generated 43 warnings
+error: could not compile `cce-design-interface` (bin "cce-design-interface" test) due to 9 previous errors; 43 warnings emitted