parent
086e899bf8
commit
4037d7ef5c
|
@ -476,9 +476,7 @@ mod inspect {
|
|||
|
||||
#[cfg(not(debug_assertions))]
|
||||
mod inspect {
|
||||
use super::*;
|
||||
|
||||
pub fn focus(path: &Option<InteractionPath>) -> String {
|
||||
pub fn focus(path: &Option<zng::widget::info::InteractionPath>) -> String {
|
||||
path.as_ref()
|
||||
.map(|p| format!("{:?}", p.widget_id()))
|
||||
.unwrap_or_else(|| "<none>".to_owned())
|
||||
|
|
|
@ -5,9 +5,9 @@ error: expected `delegate = <expr>`
|
|||
| ^^^^^^^^
|
||||
|
||||
warning: unused import: `UiNode`
|
||||
--> cases/ui_node/incorrect_assign_token.rs:1:48
|
||||
--> cases/ui_node/incorrect_assign_token.rs:1:44
|
||||
|
|
||||
1 | use zng::prelude_wgt::{ui_node, NilUiNode, UiNode};
|
||||
| ^^^^^^
|
||||
| ^^^^^^
|
||||
|
|
||||
= note: `#[warn(unused_imports)]` on by default
|
||||
|
|
|
@ -5,9 +5,9 @@ error: expected `child`, `children`, `delegate`, or, `delegate_list`
|
|||
| ^^^^^^^^^^^
|
||||
|
||||
warning: unused import: `UiNode`
|
||||
--> cases/ui_node/invalid_args.rs:1:37
|
||||
--> cases/ui_node/invalid_args.rs:1:33
|
||||
|
|
||||
1 | use zng::prelude_wgt::{ui_node, UiNode};
|
||||
| ^^^^^^
|
||||
| ^^^^^^
|
||||
|
|
||||
= note: `#[warn(unused_imports)]` on by default
|
||||
|
|
|
@ -5,9 +5,9 @@ error: expected `child`, `children`, `delegate`, or, `delegate_list`
|
|||
| ^^^^^^^^^
|
||||
|
||||
warning: unused import: `UiNode`
|
||||
--> cases/ui_node/invalid_delegate_pair_name.rs:1:48
|
||||
--> cases/ui_node/invalid_delegate_pair_name.rs:1:44
|
||||
|
|
||||
1 | use zng::prelude_wgt::{ui_node, NilUiNode, UiNode};
|
||||
| ^^^^^^
|
||||
| ^^^^^^
|
||||
|
|
||||
= note: `#[warn(unused_imports)]` on by default
|
||||
|
|
|
@ -11,9 +11,9 @@ error: expected `delegate = <expr>`
|
|||
| ^
|
||||
|
||||
warning: unused import: `UiNode`
|
||||
--> cases/ui_node/missing_delegate_expr.rs:1:37
|
||||
--> cases/ui_node/missing_delegate_expr.rs:1:33
|
||||
|
|
||||
1 | use zng::prelude_wgt::{ui_node, UiNode};
|
||||
| ^^^^^^
|
||||
| ^^^^^^
|
||||
|
|
||||
= note: `#[warn(unused_imports)]` on by default
|
||||
|
|
|
@ -5,9 +5,9 @@ error: unknown special value, expected `unset!`
|
|||
| ^^^^^^^
|
||||
|
||||
warning: unused import: `widget::background_color`
|
||||
--> cases/widget_new/invalid_special.rs:1:31
|
||||
--> cases/widget_new/invalid_special.rs:1:27
|
||||
|
|
||||
1 | use zng::{button::Button, widget::background_color, APP};
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(unused_imports)]` on by default
|
||||
|
|
|
@ -19,9 +19,9 @@ error: expected identifier, found `!`
|
|||
| --------- while parsing argument for this `expr` macro fragment
|
||||
|
||||
warning: unused import: `layout::margin`
|
||||
--> cases/widget_new/malformed_property_attribute.rs:1:31
|
||||
--> cases/widget_new/malformed_property_attribute.rs:1:27
|
||||
|
|
||||
1 | use zng::{button::Button, layout::margin, APP};
|
||||
| ^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(unused_imports)]` on by default
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
error: expected `;`
|
||||
--> cases/widget_new/malformed_property_path3.rs:6:24
|
||||
--> cases/widget_new/malformed_property_path3.rs:6:20
|
||||
|
|
||||
6 | zng::layout:margin = 0;
|
||||
| ^
|
||||
| ^
|
||||
|
||||
error[E0425]: cannot find function `layout` in module `zng::layout`
|
||||
--> cases/widget_new/malformed_property_path3.rs:6:18
|
||||
--> cases/widget_new/malformed_property_path3.rs:6:14
|
||||
|
|
||||
6 | zng::layout:margin = 0;
|
||||
| ^^^^^^ help: a unit struct with a similar name exists: `LAYOUT`
|
||||
| ^^^^^^ help: a unit struct with a similar name exists: `LAYOUT`
|
||||
|
|
||||
::: $WORKSPACE/zng-layout/src/context.rs
|
||||
|
|
||||
|
@ -16,16 +16,16 @@ error[E0425]: cannot find function `layout` in module `zng::layout`
|
|||
| ----------------- similarly named unit struct `LAYOUT` defined here
|
||||
|
||||
error[E0425]: cannot find value `layout` in this scope
|
||||
--> cases/widget_new/malformed_property_path3.rs:6:18
|
||||
--> cases/widget_new/malformed_property_path3.rs:6:14
|
||||
|
|
||||
6 | zng::layout:margin = 0;
|
||||
| ^^^^^^ not found in this scope
|
||||
| ^^^^^^ not found in this scope
|
||||
|
||||
error[E0599]: no method named `margin` found for mutable reference `&mut Wgt` in the current scope
|
||||
--> cases/widget_new/malformed_property_path3.rs:6:25
|
||||
--> cases/widget_new/malformed_property_path3.rs:6:21
|
||||
|
|
||||
6 | zng::layout:margin = 0;
|
||||
| ^^^^^^ method not found in `&mut Wgt`
|
||||
| ^^^^^^ method not found in `&mut Wgt`
|
||||
|
|
||||
= help: items from traits can only be used if the trait is in scope
|
||||
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error: expected identifier
|
||||
--> cases/widget_new/malformed_property_path4.rs:6:27
|
||||
--> cases/widget_new/malformed_property_path4.rs:6:23
|
||||
|
|
||||
6 | zng::layout:: = 0;
|
||||
| ^
|
||||
| ^
|
||||
|
|
|
@ -20,10 +20,10 @@ error: expected `;`
|
|||
| ^^^^^^
|
||||
|
||||
warning: unused import: `mouse::cursor`
|
||||
--> cases/widget_new/missing_value5.rs:1:31
|
||||
--> cases/widget_new/missing_value5.rs:1:27
|
||||
|
|
||||
1 | use zng::{layout::margin, mouse::cursor, widget::Wgt, APP};
|
||||
| ^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(unused_imports)]` on by default
|
||||
|
||||
|
@ -31,4 +31,4 @@ warning: unused import: `zng::layout::PxPoint`
|
|||
--> cases/widget_new/missing_value5.rs:9:17
|
||||
|
|
||||
9 | use zng::layout::PxPoint;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
@ -5,9 +5,9 @@ error: unknown special value, expected `unset!`
|
|||
| ^^^
|
||||
|
||||
warning: unused import: `layout::margin`
|
||||
--> cases/widget_new/unknown_special_value.rs:1:15
|
||||
--> cases/widget_new/unknown_special_value.rs:1:11
|
||||
|
|
||||
1 | use zng::{layout::margin, widget::Wgt, APP};
|
||||
| ^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(unused_imports)]` on by default
|
||||
|
|
|
@ -5,9 +5,9 @@ error: unexpected token
|
|||
| ^
|
||||
|
||||
warning: unused imports: `gesture::is_pressed`, `layout::margin`
|
||||
--> cases/widget_new/unknown_special_value_in_when.rs:1:15
|
||||
--> cases/widget_new/unknown_special_value_in_when.rs:1:11
|
||||
|
|
||||
1 | use zng::{gesture::is_pressed, layout::margin, widget::Wgt, APP};
|
||||
| ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(unused_imports)]` on by default
|
||||
|
|
|
@ -5,9 +5,9 @@ error: expected a when block expr and properties
|
|||
| ^^^^^^^^^^
|
||||
|
||||
warning: unused import: `gesture::is_pressed`
|
||||
--> cases/widget_new/when_missing_block.rs:1:15
|
||||
--> cases/widget_new/when_missing_block.rs:1:11
|
||||
|
|
||||
1 | use zng::{gesture::is_pressed, widget::Wgt, APP};
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(unused_imports)]` on by default
|
||||
|
|
Loading…
Reference in New Issue