Merge branch 'master' of github.com:makers-for-life/makair-control-ui #824
Annotations
380 errors and 5 warnings
field assignment outside of initializer for an instance created with Default::default():
src/widget/telemetry_view.rs#L140
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/telemetry_view.rs:140:9
|
140 | unit_text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(color::WHITE.with_alpha(0.35)), font_size: Some(TELEMETRY_WIDGET_UNIT_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/telemetry_view.rs:138:9
|
138 | let mut unit_text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/telemetry_view.rs#L77
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/telemetry_view.rs:77:13
|
77 | target_text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(color::WHITE), font_size: Some(23), ..Default::default() }` and removing relevant reassignments
--> src/widget/telemetry_view.rs:75:13
|
75 | let mut target_text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/telemetry_view.rs#L66
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/telemetry_view.rs:66:5
|
66 | value_text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(40), ..Default::default() }` and removing relevant reassignments
--> src/widget/telemetry_view.rs:64:5
|
64 | let mut value_text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/stop.rs#L41
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/stop.rs:41:5
|
41 | message_style.color = Some(MESSAGE_COLOR);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { color: Some(MESSAGE_COLOR), font_size: Some(14), font_id: Some(Some(master.fonts.regular)), ..Default::default() }` and removing relevant reassignments
--> src/widget/stop.rs:39:5
|
39 | let mut message_style = widget::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/stop.rs#L28
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/stop.rs:28:5
|
28 | title_style.color = Some(color::WHITE);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { color: Some(color::WHITE), font_size: Some(19), font_id: Some(Some(master.fonts.bold)), ..Default::default() }` and removing relevant reassignments
--> src/widget/stop.rs:26:5
|
26 | let mut title_style = widget::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/telemetry_view.rs#L140
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/telemetry_view.rs:140:9
|
140 | unit_text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(color::WHITE.with_alpha(0.35)), font_size: Some(TELEMETRY_WIDGET_UNIT_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/telemetry_view.rs:138:9
|
138 | let mut unit_text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/telemetry_view.rs#L77
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/telemetry_view.rs:77:13
|
77 | target_text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(color::WHITE), font_size: Some(23), ..Default::default() }` and removing relevant reassignments
--> src/widget/telemetry_view.rs:75:13
|
75 | let mut target_text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/telemetry_view.rs#L66
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/telemetry_view.rs:66:5
|
66 | value_text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(40), ..Default::default() }` and removing relevant reassignments
--> src/widget/telemetry_view.rs:64:5
|
64 | let mut value_text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/status.rs#L165
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/status.rs:165:5
|
165 | power_text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(11), ..Default::default() }` and removing relevant reassignments
--> src/widget/status.rs:163:5
|
163 | let mut power_text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/status.rs#L92
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/status.rs:92:5
|
92 | unit_text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(11), ..Default::default() }` and removing relevant reassignments
--> src/widget/status.rs:90:5
|
90 | let mut unit_text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/stop.rs#L41
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/stop.rs:41:5
|
41 | message_style.color = Some(MESSAGE_COLOR);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { color: Some(MESSAGE_COLOR), font_size: Some(14), font_id: Some(Some(master.fonts.regular)), ..Default::default() }` and removing relevant reassignments
--> src/widget/stop.rs:39:5
|
39 | let mut message_style = widget::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/stop.rs#L28
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/stop.rs:28:5
|
28 | title_style.color = Some(color::WHITE);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { color: Some(color::WHITE), font_size: Some(19), font_id: Some(Some(master.fonts.bold)), ..Default::default() }` and removing relevant reassignments
--> src/widget/stop.rs:26:5
|
26 | let mut title_style = widget::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/status.rs#L45
error: the following explicit lifetimes could be elided: 'a
--> src/widget/status.rs:45:15
|
45 | pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
45 - pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
45 + pub fn render(master: &mut ControlWidget<'_>, config: Config) -> f64 {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/snooze_settings.rs#L73
error: the following explicit lifetimes could be elided: 'a
--> src/widget/snooze_settings.rs:73:16
|
73 | fn alarms_form<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
73 - fn alarms_form<'a>(master: &mut ControlWidget<'a>, config: &Config) {
73 + fn alarms_form(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/snooze_settings.rs#L61
error: the following explicit lifetimes could be elided: 'a
--> src/widget/snooze_settings.rs:61:17
|
61 | fn alarms_label<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
61 - fn alarms_label<'a>(master: &mut ControlWidget<'a>, config: &Config) {
61 + fn alarms_label(master: &mut ControlWidget<'_>, config: &Config) {
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/snooze_settings.rs#L58
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/snooze_settings.rs:58:25
|
58 | alarms_form(master, &config);
| ^^^^^^^ help: change this to: `config`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/snooze_settings.rs#L57
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/snooze_settings.rs:57:26
|
57 | alarms_label(master, &config);
| ^^^^^^^ help: change this to: `config`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the following explicit lifetimes could be elided: 'a:
src/widget/snooze_settings.rs#L55
error: the following explicit lifetimes could be elided: 'a
--> src/widget/snooze_settings.rs:55:11
|
55 | fn alarms<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
55 - fn alarms<'a>(master: &mut ControlWidget<'a>, config: &Config) {
55 + fn alarms(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/status.rs#L165
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/status.rs:165:5
|
165 | power_text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(11), ..Default::default() }` and removing relevant reassignments
--> src/widget/status.rs:163:5
|
163 | let mut power_text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/status.rs#L92
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/status.rs:92:5
|
92 | unit_text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(11), ..Default::default() }` and removing relevant reassignments
--> src/widget/status.rs:90:5
|
90 | let mut unit_text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/snooze_settings.rs#L36
error: the following explicit lifetimes could be elided: 'a
--> src/widget/snooze_settings.rs:36:15
|
36 | pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
36 - pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
36 + pub fn render(master: &mut ControlWidget<'_>, config: Config) -> f64 {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/status.rs#L45
error: the following explicit lifetimes could be elided: 'a
--> src/widget/status.rs:45:15
|
45 | pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
45 - pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
45 + pub fn render(master: &mut ControlWidget<'_>, config: Config) -> f64 {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/run_settings.rs#L72
error: the following explicit lifetimes could be elided: 'a
--> src/widget/run_settings.rs:72:16
|
72 | fn status_form<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
72 - fn status_form<'a>(master: &mut ControlWidget<'a>, config: &Config) {
72 + fn status_form(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/snooze_settings.rs#L73
error: the following explicit lifetimes could be elided: 'a
--> src/widget/snooze_settings.rs:73:16
|
73 | fn alarms_form<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
73 - fn alarms_form<'a>(master: &mut ControlWidget<'a>, config: &Config) {
73 + fn alarms_form(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/run_settings.rs#L60
error: the following explicit lifetimes could be elided: 'a
--> src/widget/run_settings.rs:60:17
|
60 | fn status_label<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
60 - fn status_label<'a>(master: &mut ControlWidget<'a>, config: &Config) {
60 + fn status_label(master: &mut ControlWidget<'_>, config: &Config) {
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/run_settings.rs#L57
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/run_settings.rs:57:25
|
57 | status_form(master, &config);
| ^^^^^^^ help: change this to: `config`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/run_settings.rs#L56
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/run_settings.rs:56:26
|
56 | status_label(master, &config);
| ^^^^^^^ help: change this to: `config`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the following explicit lifetimes could be elided: 'a:
src/widget/snooze_settings.rs#L61
error: the following explicit lifetimes could be elided: 'a
--> src/widget/snooze_settings.rs:61:17
|
61 | fn alarms_label<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
61 - fn alarms_label<'a>(master: &mut ControlWidget<'a>, config: &Config) {
61 + fn alarms_label(master: &mut ControlWidget<'_>, config: &Config) {
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/snooze_settings.rs#L58
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/snooze_settings.rs:58:25
|
58 | alarms_form(master, &config);
| ^^^^^^^ help: change this to: `config`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/snooze_settings.rs#L57
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/snooze_settings.rs:57:26
|
57 | alarms_label(master, &config);
| ^^^^^^^ help: change this to: `config`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the following explicit lifetimes could be elided: 'a:
src/widget/run_settings.rs#L54
error: the following explicit lifetimes could be elided: 'a
--> src/widget/run_settings.rs:54:11
|
54 | fn status<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
54 - fn status<'a>(master: &mut ControlWidget<'a>, config: &Config) {
54 + fn status(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/snooze_settings.rs#L55
error: the following explicit lifetimes could be elided: 'a
--> src/widget/snooze_settings.rs:55:11
|
55 | fn alarms<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
55 - fn alarms<'a>(master: &mut ControlWidget<'a>, config: &Config) {
55 + fn alarms(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/run_settings.rs#L35
error: the following explicit lifetimes could be elided: 'a
--> src/widget/run_settings.rs:35:15
|
35 | pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
35 - pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
35 + pub fn render(master: &mut ControlWidget<'_>, config: Config) -> f64 {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/snooze_settings.rs#L36
error: the following explicit lifetimes could be elided: 'a
--> src/widget/snooze_settings.rs:36:15
|
36 | pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
36 - pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
36 + pub fn render(master: &mut ControlWidget<'_>, config: Config) -> f64 {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/run_settings.rs#L72
error: the following explicit lifetimes could be elided: 'a
--> src/widget/run_settings.rs:72:16
|
72 | fn status_form<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
72 - fn status_form<'a>(master: &mut ControlWidget<'a>, config: &Config) {
72 + fn status_form(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/run_settings.rs#L60
error: the following explicit lifetimes could be elided: 'a
--> src/widget/run_settings.rs:60:17
|
60 | fn status_label<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
60 - fn status_label<'a>(master: &mut ControlWidget<'a>, config: &Config) {
60 + fn status_label(master: &mut ControlWidget<'_>, config: &Config) {
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/run_settings.rs#L57
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/run_settings.rs:57:25
|
57 | status_form(master, &config);
| ^^^^^^^ help: change this to: `config`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/run_settings.rs#L56
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/run_settings.rs:56:26
|
56 | status_label(master, &config);
| ^^^^^^^ help: change this to: `config`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the following explicit lifetimes could be elided: 'a:
src/widget/run_settings.rs#L54
error: the following explicit lifetimes could be elided: 'a
--> src/widget/run_settings.rs:54:11
|
54 | fn status<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
54 - fn status<'a>(master: &mut ControlWidget<'a>, config: &Config) {
54 + fn status(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/run_settings.rs#L35
error: the following explicit lifetimes could be elided: 'a
--> src/widget/run_settings.rs:35:15
|
35 | pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
35 - pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
35 + pub fn render(master: &mut ControlWidget<'_>, config: Config) -> f64 {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L225
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:225:15
|
225 | fn draw_field<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config, field: Field) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
225 - fn draw_field<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config, field: Field) {
225 + fn draw_field(index: usize, master: &mut ControlWidget<'_>, config: &Config, field: Field) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L174
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:174:17
|
174 | fn content_form<'a>(master: &mut ControlWidget<'a>, config: &Config, size: (f64, f64)) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
174 - fn content_form<'a>(master: &mut ControlWidget<'a>, config: &Config, size: (f64, f64)) {
174 + fn content_form(master: &mut ControlWidget<'_>, config: &Config, size: (f64, f64)) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L165
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:165:22
|
165 | fn content_separator<'a>(master: &mut ControlWidget<'a>, config: &Config, size: (f64, f64)) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
165 - fn content_separator<'a>(master: &mut ControlWidget<'a>, config: &Config, size: (f64, f64)) {
165 + fn content_separator(master: &mut ControlWidget<'_>, config: &Config, size: (f64, f64)) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L147
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:147:18
|
147 | fn content_image<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
147 - fn content_image<'a>(master: &mut ControlWidget<'a>, config: &Config) {
147 + fn content_image(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L225
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:225:15
|
225 | fn draw_field<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config, field: Field) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
225 - fn draw_field<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config, field: Field) {
225 + fn draw_field(index: usize, master: &mut ControlWidget<'_>, config: &Config, field: Field) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L123
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:123:12
|
123 | fn content<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
123 - fn content<'a>(master: &mut ControlWidget<'a>, config: &Config) {
123 + fn content(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/preset_settings.rs#L112
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/preset_settings.rs:112:5
|
112 | text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(color::WHITE.alpha(0.5)), font_size: Some(15), ..Default::default() }` and removing relevant reassignments
--> src/widget/preset_settings.rs:110:5
|
110 | let mut text_style = widget::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L108
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:108:20
|
108 | fn title_secondary<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
108 - fn title_secondary<'a>(master: &mut ControlWidget<'a>, config: &Config) {
108 + fn title_secondary(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/preset_settings.rs#L97
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/preset_settings.rs:97:5
|
97 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(19), ..Default::default() }` and removing relevant reassignments
--> src/widget/preset_settings.rs:95:5
|
95 | let mut text_style = widget::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L174
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:174:17
|
174 | fn content_form<'a>(master: &mut ControlWidget<'a>, config: &Config, size: (f64, f64)) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
174 - fn content_form<'a>(master: &mut ControlWidget<'a>, config: &Config, size: (f64, f64)) {
174 + fn content_form(master: &mut ControlWidget<'_>, config: &Config, size: (f64, f64)) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L93
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:93:18
|
93 | fn title_primary<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
93 - fn title_primary<'a>(master: &mut ControlWidget<'a>, config: &Config) {
93 + fn title_primary(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L165
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:165:22
|
165 | fn content_separator<'a>(master: &mut ControlWidget<'a>, config: &Config, size: (f64, f64)) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
165 - fn content_separator<'a>(master: &mut ControlWidget<'a>, config: &Config, size: (f64, f64)) {
165 + fn content_separator(master: &mut ControlWidget<'_>, config: &Config, size: (f64, f64)) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L87
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:87:10
|
87 | fn title<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
87 - fn title<'a>(master: &mut ControlWidget<'a>, config: &Config) {
87 + fn title(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L147
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:147:18
|
147 | fn content_image<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
147 - fn content_image<'a>(master: &mut ControlWidget<'a>, config: &Config) {
147 + fn content_image(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L67
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:67:15
|
67 | pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
67 - pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
67 + pub fn render(master: &mut ControlWidget<'_>, config: Config) -> f64 {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L123
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:123:12
|
123 | fn content<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
123 - fn content<'a>(master: &mut ControlWidget<'a>, config: &Config) {
123 + fn content(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/preset_settings.rs#L112
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/preset_settings.rs:112:5
|
112 | text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(color::WHITE.alpha(0.5)), font_size: Some(15), ..Default::default() }` and removing relevant reassignments
--> src/widget/preset_settings.rs:110:5
|
110 | let mut text_style = widget::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L108
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:108:20
|
108 | fn title_secondary<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
108 - fn title_secondary<'a>(master: &mut ControlWidget<'a>, config: &Config) {
108 + fn title_secondary(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/preset_settings.rs#L97
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/preset_settings.rs:97:5
|
97 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(19), ..Default::default() }` and removing relevant reassignments
--> src/widget/preset_settings.rs:95:5
|
95 | let mut text_style = widget::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L93
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:93:18
|
93 | fn title_primary<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
93 - fn title_primary<'a>(master: &mut ControlWidget<'a>, config: &Config) {
93 + fn title_primary(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L87
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:87:10
|
87 | fn title<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
87 - fn title<'a>(master: &mut ControlWidget<'a>, config: &Config) {
87 + fn title(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/preset_settings.rs#L67
error: the following explicit lifetimes could be elided: 'a
--> src/widget/preset_settings.rs:67:15
|
67 | pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
67 - pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
67 + pub fn render(master: &mut ControlWidget<'_>, config: Config) -> f64 {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L860
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:860:15
|
860 | fn draw_field<'a>(
| ^^
861 | index: usize,
862 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
860 ~ fn draw_field(
861 | index: usize,
862 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L836
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:836:40
|
836 | fn field_alarm_threshold_peak_pressure<'a>(
| ^^
837 | index: usize,
838 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
836 ~ fn field_alarm_threshold_peak_pressure(
837 | index: usize,
838 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L816
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:816:31
|
816 | fn field_alarm_threshold_leak<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
816 - fn field_alarm_threshold_leak<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
816 + fn field_alarm_threshold_leak(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L860
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:860:15
|
860 | fn draw_field<'a>(
| ^^
861 | index: usize,
862 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
860 ~ fn draw_field(
861 | index: usize,
862 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L792
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:792:44
|
792 | fn field_alarm_threshold_high_tidal_volume<'a>(
| ^^
793 | index: usize,
794 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
792 ~ fn field_alarm_threshold_high_tidal_volume(
793 | index: usize,
794 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L836
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:836:40
|
836 | fn field_alarm_threshold_peak_pressure<'a>(
| ^^
837 | index: usize,
838 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
836 ~ fn field_alarm_threshold_peak_pressure(
837 | index: usize,
838 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L768
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:768:43
|
768 | fn field_alarm_threshold_low_tidal_volume<'a>(
| ^^
769 | index: usize,
770 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
768 ~ fn field_alarm_threshold_low_tidal_volume(
769 | index: usize,
770 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L816
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:816:31
|
816 | fn field_alarm_threshold_leak<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
816 - fn field_alarm_threshold_leak<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
816 + fn field_alarm_threshold_leak(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L792
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:792:44
|
792 | fn field_alarm_threshold_high_tidal_volume<'a>(
| ^^
793 | index: usize,
794 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
792 ~ fn field_alarm_threshold_high_tidal_volume(
793 | index: usize,
794 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L744
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:744:48
|
744 | fn field_alarm_threshold_high_respiratory_rate<'a>(
| ^^
745 | index: usize,
746 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
744 ~ fn field_alarm_threshold_high_respiratory_rate(
745 | index: usize,
746 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L720
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:720:47
|
720 | fn field_alarm_threshold_low_respiratory_rate<'a>(
| ^^
721 | index: usize,
722 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
720 ~ fn field_alarm_threshold_low_respiratory_rate(
721 | index: usize,
722 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L768
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:768:43
|
768 | fn field_alarm_threshold_low_tidal_volume<'a>(
| ^^
769 | index: usize,
770 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
768 ~ fn field_alarm_threshold_low_tidal_volume(
769 | index: usize,
770 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L744
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:744:48
|
744 | fn field_alarm_threshold_high_respiratory_rate<'a>(
| ^^
745 | index: usize,
746 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
744 ~ fn field_alarm_threshold_high_respiratory_rate(
745 | index: usize,
746 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L695
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:695:56
|
695 | fn field_alarm_threshold_high_expiratory_minute_volume<'a>(
| ^^
696 | index: usize,
697 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
695 ~ fn field_alarm_threshold_high_expiratory_minute_volume(
696 | index: usize,
697 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L720
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:720:47
|
720 | fn field_alarm_threshold_low_respiratory_rate<'a>(
| ^^
721 | index: usize,
722 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
720 ~ fn field_alarm_threshold_low_respiratory_rate(
721 | index: usize,
722 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L670
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:670:55
|
670 | fn field_alarm_threshold_low_expiratory_minute_volume<'a>(
| ^^
671 | index: usize,
672 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
670 ~ fn field_alarm_threshold_low_expiratory_minute_volume(
671 | index: usize,
672 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L695
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:695:56
|
695 | fn field_alarm_threshold_high_expiratory_minute_volume<'a>(
| ^^
696 | index: usize,
697 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
695 ~ fn field_alarm_threshold_high_expiratory_minute_volume(
696 | index: usize,
697 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L645
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:645:57
|
645 | fn field_alarm_threshold_high_inspiratory_minute_volume<'a>(
| ^^
646 | index: usize,
647 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
645 ~ fn field_alarm_threshold_high_inspiratory_minute_volume(
646 | index: usize,
647 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L670
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:670:55
|
670 | fn field_alarm_threshold_low_expiratory_minute_volume<'a>(
| ^^
671 | index: usize,
672 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
670 ~ fn field_alarm_threshold_low_expiratory_minute_volume(
671 | index: usize,
672 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L645
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:645:57
|
645 | fn field_alarm_threshold_high_inspiratory_minute_volume<'a>(
| ^^
646 | index: usize,
647 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
645 ~ fn field_alarm_threshold_high_inspiratory_minute_volume(
646 | index: usize,
647 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L620
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:620:56
|
620 | fn field_alarm_threshold_low_inspiratory_minute_volume<'a>(
| ^^
621 | index: usize,
622 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
620 ~ fn field_alarm_threshold_low_inspiratory_minute_volume(
621 | index: usize,
622 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L604
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:604:29
|
604 | fn field_trigger_expiratory<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
604 - fn field_trigger_expiratory<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
604 + fn field_trigger_expiratory(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L620
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:620:56
|
620 | fn field_alarm_threshold_low_inspiratory_minute_volume<'a>(
| ^^
621 | index: usize,
622 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
620 ~ fn field_alarm_threshold_low_inspiratory_minute_volume(
621 | index: usize,
622 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L584
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:584:25
|
584 | fn field_trigger_offset<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
584 - fn field_trigger_offset<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
584 + fn field_trigger_offset(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L604
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:604:29
|
604 | fn field_trigger_expiratory<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
604 - fn field_trigger_expiratory<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
604 + fn field_trigger_expiratory(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L564
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:564:27
|
564 | fn field_duration_plateau<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
564 - fn field_duration_plateau<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
564 + fn field_duration_plateau(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L584
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:584:25
|
584 | fn field_trigger_offset<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
584 - fn field_trigger_offset<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
584 + fn field_trigger_offset(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L544
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:544:31
|
544 | fn field_duration_inspiration<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
544 - fn field_duration_inspiration<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
544 + fn field_duration_inspiration(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L564
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:564:27
|
564 | fn field_duration_plateau<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
564 - fn field_duration_plateau<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
564 + fn field_duration_plateau(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L524
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:524:27
|
524 | fn field_inspiratory_flow<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
524 - fn field_inspiratory_flow<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
524 + fn field_inspiratory_flow(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L544
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:544:31
|
544 | fn field_duration_inspiration<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
544 - fn field_duration_inspiration<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
544 + fn field_duration_inspiration(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L504
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:504:23
|
504 | fn field_tidal_volume<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
504 - fn field_tidal_volume<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
504 + fn field_tidal_volume(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L524
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:524:27
|
524 | fn field_inspiratory_flow<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
524 - fn field_inspiratory_flow<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
524 + fn field_inspiratory_flow(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L484
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:484:28
|
484 | fn field_cycles_per_minute<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
484 - fn field_cycles_per_minute<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
484 + fn field_cycles_per_minute(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L504
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:504:23
|
504 | fn field_tidal_volume<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
504 - fn field_tidal_volume<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
504 + fn field_tidal_volume(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L460
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:460:35
|
460 | fn field_time_inspiratory_maximum<'a>(
| ^^
461 | index: usize,
462 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
460 ~ fn field_time_inspiratory_maximum(
461 | index: usize,
462 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L484
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:484:28
|
484 | fn field_cycles_per_minute<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
484 - fn field_cycles_per_minute<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
484 + fn field_cycles_per_minute(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L436
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:436:35
|
436 | fn field_time_inspiratory_minimum<'a>(
| ^^
437 | index: usize,
438 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
436 ~ fn field_time_inspiratory_minimum(
437 | index: usize,
438 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L460
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:460:35
|
460 | fn field_time_inspiratory_maximum<'a>(
| ^^
461 | index: usize,
462 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
460 ~ fn field_time_inspiratory_maximum(
461 | index: usize,
462 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L416
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:416:30
|
416 | fn field_pressure_expiratory<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
416 - fn field_pressure_expiratory<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
416 + fn field_pressure_expiratory(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L436
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:436:35
|
436 | fn field_time_inspiratory_minimum<'a>(
| ^^
437 | index: usize,
438 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
436 ~ fn field_time_inspiratory_minimum(
437 | index: usize,
438 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L396
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:396:31
|
396 | fn field_pressure_inspiratory<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
396 - fn field_pressure_inspiratory<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
396 + fn field_pressure_inspiratory(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L416
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:416:30
|
416 | fn field_pressure_expiratory<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
416 - fn field_pressure_expiratory<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config) {
416 + fn field_pressure_expiratory(index: usize, master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L373
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:373:15
|
373 | fn form_vc_ac<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
373 - fn form_vc_ac<'a>(master: &mut ControlWidget<'a>, config: &Config) {
373 + fn form_vc_ac(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L333
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:333:17
|
333 | fn form_pc_vsai<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
333 - fn form_pc_vsai<'a>(master: &mut ControlWidget<'a>, config: &Config) {
333 + fn form_pc_vsai(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L373
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:373:15
|
373 | fn form_vc_ac<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
373 - fn form_vc_ac<'a>(master: &mut ControlWidget<'a>, config: &Config) {
373 + fn form_vc_ac(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L357
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:357:16
|
357 | fn form_vc_cmv<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
357 - fn form_vc_cmv<'a>(master: &mut ControlWidget<'a>, config: &Config) {
357 + fn form_vc_cmv(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L311
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:311:15
|
311 | fn form_pc_ac<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
311 - fn form_pc_ac<'a>(master: &mut ControlWidget<'a>, config: &Config) {
311 + fn form_pc_ac(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L292
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:292:16
|
292 | fn form_pc_cmv<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
292 - fn form_pc_cmv<'a>(master: &mut ControlWidget<'a>, config: &Config) {
292 + fn form_pc_cmv(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L333
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:333:17
|
333 | fn form_pc_vsai<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
333 - fn form_pc_vsai<'a>(master: &mut ControlWidget<'a>, config: &Config) {
333 + fn form_pc_vsai(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L311
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:311:15
|
311 | fn form_pc_ac<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
311 - fn form_pc_ac<'a>(master: &mut ControlWidget<'a>, config: &Config) {
311 + fn form_pc_ac(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L292
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:292:16
|
292 | fn form_pc_cmv<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
292 - fn form_pc_cmv<'a>(master: &mut ControlWidget<'a>, config: &Config) {
292 + fn form_pc_cmv(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L245
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:245:14
|
245 | fn group_tab<'a>(
| ^^
246 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
245 ~ fn group_tab(
246 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L263
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:263:9
|
263 | fn form<'a>(master: &mut ControlWidget<'a>, config: &Config, parent_size: (f64, f64)) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
263 - fn form<'a>(master: &mut ControlWidget<'a>, config: &Config, parent_size: (f64, f64)) {
263 + fn form(master: &mut ControlWidget<'_>, config: &Config, parent_size: (f64, f64)) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L225
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:225:10
|
225 | fn group<'a>(master: &mut ControlWidget<'a>, config: &Config, parent_size: (f64, f64)) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
225 - fn group<'a>(master: &mut ControlWidget<'a>, config: &Config, parent_size: (f64, f64)) {
225 + fn group(master: &mut ControlWidget<'_>, config: &Config, parent_size: (f64, f64)) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L203
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:203:12
|
203 | fn content<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
203 - fn content<'a>(master: &mut ControlWidget<'a>, config: &Config) {
203 + fn content(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L245
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:245:14
|
245 | fn group_tab<'a>(
| ^^
246 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
245 ~ fn group_tab(
246 ~ master: &mut ControlWidget<'_>,
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/mode_settings.rs#L178
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/mode_settings.rs:178:13
|
178 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(if is_selected && mode != config.mode_settings.live.mode {
SELECTOR_TEXT_COLOR_CHANGED
} else {
color::WHITE
}), font_size: Some(14), ..Default::default() }` and removing relevant reassignments
--> src/widget/mode_settings.rs:176:13
|
176 | let mut text_style = widget::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L225
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:225:10
|
225 | fn group<'a>(master: &mut ControlWidget<'a>, config: &Config, parent_size: (f64, f64)) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
225 - fn group<'a>(master: &mut ControlWidget<'a>, config: &Config, parent_size: (f64, f64)) {
225 + fn group(master: &mut ControlWidget<'_>, config: &Config, parent_size: (f64, f64)) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L203
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:203:12
|
203 | fn content<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
203 - fn content<'a>(master: &mut ControlWidget<'a>, config: &Config) {
203 + fn content(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/mode_settings.rs#L178
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/mode_settings.rs:178:13
|
178 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(if is_selected && mode != config.mode_settings.live.mode {
SELECTOR_TEXT_COLOR_CHANGED
} else {
color::WHITE
}), font_size: Some(14), ..Default::default() }` and removing relevant reassignments
--> src/widget/mode_settings.rs:176:13
|
176 | let mut text_style = widget::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L116
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:116:13
|
116 | fn selector<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
116 - fn selector<'a>(master: &mut ControlWidget<'a>, config: &Config) {
116 + fn selector(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L96
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:96:15
|
96 | pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
96 - pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
96 + pub fn render(master: &mut ControlWidget<'_>, config: Config) -> f64 {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L116
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:116:13
|
116 | fn selector<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
116 - fn selector<'a>(master: &mut ControlWidget<'a>, config: &Config) {
116 + fn selector(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_settings.rs#L96
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_settings.rs:96:15
|
96 | pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
96 - pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
96 + pub fn render(master: &mut ControlWidget<'_>, config: Config) -> f64 {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/mode_overview.rs#L97
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/mode_overview.rs:97:5
|
97 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::BLACK), font_size: Some(TELEMETRY_WIDGET_RIGHT_MODE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/mode_overview.rs:95:5
|
95 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_overview.rs#L93
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_overview.rs:93:9
|
93 | fn kind<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
93 - fn kind<'a>(master: &mut ControlWidget<'a>, config: &Config) {
93 + fn kind(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/mode_overview.rs#L75
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/mode_overview.rs:75:5
|
75 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(match mode_class {
VentilationModeClass::Pressure => CLASS_PRESSURE_COLOR,
VentilationModeClass::Volume => CLASS_FLOW_COLOR,
}), font_size: Some(TELEMETRY_WIDGET_RIGHT_MODE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/mode_overview.rs:73:5
|
73 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_overview.rs#L68
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_overview.rs:68:10
|
68 | fn class<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
68 - fn class<'a>(master: &mut ControlWidget<'a>, config: &Config) {
68 + fn class(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_overview.rs#L58
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_overview.rs:58:14
|
58 | fn separator<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
58 - fn separator<'a>(master: &mut ControlWidget<'a>, config: &Config) {
58 + fn separator(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/mode_overview.rs#L97
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/mode_overview.rs:97:5
|
97 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::BLACK), font_size: Some(TELEMETRY_WIDGET_RIGHT_MODE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/mode_overview.rs:95:5
|
95 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_overview.rs#L93
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_overview.rs:93:9
|
93 | fn kind<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
93 - fn kind<'a>(master: &mut ControlWidget<'a>, config: &Config) {
93 + fn kind(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_overview.rs#L40
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_overview.rs:40:15
|
40 | pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
40 - pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
40 + pub fn render(master: &mut ControlWidget<'_>, config: Config) -> f64 {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/mode_overview.rs#L75
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/mode_overview.rs:75:5
|
75 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(match mode_class {
VentilationModeClass::Pressure => CLASS_PRESSURE_COLOR,
VentilationModeClass::Volume => CLASS_FLOW_COLOR,
}), font_size: Some(TELEMETRY_WIDGET_RIGHT_MODE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/mode_overview.rs:73:5
|
73 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_overview.rs#L68
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_overview.rs:68:10
|
68 | fn class<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
68 - fn class<'a>(master: &mut ControlWidget<'a>, config: &Config) {
68 + fn class(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_overview.rs#L58
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_overview.rs:58:14
|
58 | fn separator<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
58 - fn separator<'a>(master: &mut ControlWidget<'a>, config: &Config) {
58 + fn separator(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/mode_overview.rs#L40
error: the following explicit lifetimes could be elided: 'a
--> src/widget/mode_overview.rs:40:15
|
40 | pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
40 - pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
40 + pub fn render(master: &mut ControlWidget<'_>, config: Config) -> f64 {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/modal.rs#L76
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/modal.rs:76:5
|
76 | / container_style.color = config
77 | | .colors
78 | | .map(|colors| colors.0)
79 | | .or(Some(CONTAINER_COLOR));
| |___________________________________^
|
note: consider initializing the variable with `conrod_core::widget::canvas::Style { color: config
.colors
.map(|colors| colors.0)
.or(Some(CONTAINER_COLOR)), border: Some(0.0), border_color: Some(color::TRANSPARENT), ..Default::default() }` and removing relevant reassignments
--> src/widget/modal.rs:74:5
|
74 | let mut container_style = canvas::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/modal.rs#L76
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/modal.rs:76:5
|
76 | / container_style.color = config
77 | | .colors
78 | | .map(|colors| colors.0)
79 | | .or(Some(CONTAINER_COLOR));
| |___________________________________^
|
note: consider initializing the variable with `conrod_core::widget::canvas::Style { color: config
.colors
.map(|colors| colors.0)
.or(Some(CONTAINER_COLOR)), border: Some(0.0), border_color: Some(color::TRANSPARENT), ..Default::default() }` and removing relevant reassignments
--> src/widget/modal.rs:74:5
|
74 | let mut container_style = canvas::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/initializing.rs#L58
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/initializing.rs:58:5
|
58 | text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(TEXT_COLOR), font_size: Some(INITIALIZING_MESSAGE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/initializing.rs:56:5
|
56 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/initializing.rs#L58
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/initializing.rs:58:5
|
58 | text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(TEXT_COLOR), font_size: Some(INITIALIZING_MESSAGE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/initializing.rs:56:5
|
56 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
accessing first element with `config.data_pressure.points.get(0)`:
src/widget/heartbeat.rs#L64
error: accessing first element with `config.data_pressure.points.get(0)`
--> src/widget/heartbeat.rs:64:60
|
64 | let last_pressure = if let Some(last_pressure_inner) = config.data_pressure.points.get(0) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `config.data_pressure.points.front()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `-D clippy::get-first` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::get_first)]`
|
accessing first element with `config.data_pressure.points.get(0)`:
src/widget/heartbeat.rs#L64
error: accessing first element with `config.data_pressure.points.get(0)`
--> src/widget/heartbeat.rs:64:60
|
64 | let last_pressure = if let Some(last_pressure_inner) = config.data_pressure.points.get(0) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `config.data_pressure.points.front()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `-D clippy::get-first` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::get_first)]`
|
the following explicit lifetimes could be elided: 'a:
src/widget/heartbeat.rs#L43
error: the following explicit lifetimes could be elided: 'a
--> src/widget/heartbeat.rs:43:15
|
43 | pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
43 - pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
43 + pub fn render(master: &mut ControlWidget<'_>, config: Config) -> f64 {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/graph.rs#L338
error: the following explicit lifetimes could be elided: 'a
--> src/widget/graph.rs:338:13
|
338 | fn saturate<'a>(
| ^^
339 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
338 ~ fn saturate(
339 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/heartbeat.rs#L43
error: the following explicit lifetimes could be elided: 'a
--> src/widget/heartbeat.rs:43:15
|
43 | pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
43 - pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
43 + pub fn render(master: &mut ControlWidget<'_>, config: Config) -> f64 {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/graph.rs#L328
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/graph.rs:328:5
|
328 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(GRAPH_LABEL_BOX_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/graph.rs:326:5
|
326 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/graph.rs#L306
error: the following explicit lifetimes could be elided: 'a
--> src/widget/graph.rs:306:10
|
306 | fn label<'a>(
| ^^
307 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
306 ~ fn label(
307 ~ master: &mut ControlWidget<'_>,
|
|
the borrowed expression implements the required traits:
src/widget/graph.rs#L299
error: the borrowed expression implements the required traits
--> src/widget/graph.rs:299:17
|
299 | &context.line_color.mix(0.3),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `context.line_color.mix(0.3)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the following explicit lifetimes could be elided: 'a:
src/widget/graph.rs#L338
error: the following explicit lifetimes could be elided: 'a
--> src/widget/graph.rs:338:13
|
338 | fn saturate<'a>(
| ^^
339 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
338 ~ fn saturate(
339 ~ master: &mut ControlWidget<'_>,
|
|
the borrowed expression implements the required traits:
src/widget/graph.rs#L274
error: the borrowed expression implements the required traits
--> src/widget/graph.rs:274:27
|
274 | .light_line_style(&GRAPH_MESH_LIGHT_COLOR_RGB)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `GRAPH_MESH_LIGHT_COLOR_RGB`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
src/widget/graph.rs#L273
error: the borrowed expression implements the required traits
--> src/widget/graph.rs:273:26
|
273 | .bold_line_style(&GRAPH_MESH_BOLD_COLOR_RGB.mix(GRAPH_MESH_BOLD_COLOR_ALPHA))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `GRAPH_MESH_BOLD_COLOR_RGB.mix(GRAPH_MESH_BOLD_COLOR_ALPHA)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `-D clippy::needless-borrows-for-generic-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrows_for_generic_args)]`
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/graph.rs#L328
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/graph.rs:328:5
|
328 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(GRAPH_LABEL_BOX_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/graph.rs:326:5
|
326 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/graph.rs#L306
error: the following explicit lifetimes could be elided: 'a
--> src/widget/graph.rs:306:10
|
306 | fn label<'a>(
| ^^
307 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
306 ~ fn label(
307 ~ master: &mut ControlWidget<'_>,
|
|
the borrowed expression implements the required traits:
src/widget/graph.rs#L299
error: the borrowed expression implements the required traits
--> src/widget/graph.rs:299:17
|
299 | &context.line_color.mix(0.3),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `context.line_color.mix(0.3)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the following explicit lifetimes could be elided: 'a:
src/widget/graph.rs#L240
error: the following explicit lifetimes could be elided: 'a
--> src/widget/graph.rs:240:9
|
240 | fn plot<'a>(
| ^^
241 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
240 ~ fn plot(
241 ~ master: &mut ControlWidget<'_>,
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/graph.rs#L235
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/graph.rs:235:13
|
235 | &config.data_flow,
| ^^^^^^^^^^^^^^^^^ help: change this to: `config.data_flow`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the borrowed expression implements the required traits:
src/widget/graph.rs#L274
error: the borrowed expression implements the required traits
--> src/widget/graph.rs:274:27
|
274 | .light_line_style(&GRAPH_MESH_LIGHT_COLOR_RGB)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `GRAPH_MESH_LIGHT_COLOR_RGB`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
src/widget/graph.rs#L273
error: the borrowed expression implements the required traits
--> src/widget/graph.rs:273:26
|
273 | .bold_line_style(&GRAPH_MESH_BOLD_COLOR_RGB.mix(GRAPH_MESH_BOLD_COLOR_ALPHA))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `GRAPH_MESH_BOLD_COLOR_RGB.mix(GRAPH_MESH_BOLD_COLOR_ALPHA)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `-D clippy::needless-borrows-for-generic-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrows_for_generic_args)]`
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/graph.rs#L214
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/graph.rs:214:26
|
214 | data_values: &config.data_flow,
| ^^^^^^^^^^^^^^^^^ help: change this to: `config.data_flow`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/graph.rs#L179
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/graph.rs:179:13
|
179 | &config.data_pressure,
| ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `config.data_pressure`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/graph.rs#L158
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/graph.rs:158:26
|
158 | data_values: &config.data_pressure,
| ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `config.data_pressure`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the following explicit lifetimes could be elided: 'a:
src/widget/graph.rs#L240
error: the following explicit lifetimes could be elided: 'a
--> src/widget/graph.rs:240:9
|
240 | fn plot<'a>(
| ^^
241 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
240 ~ fn plot(
241 ~ master: &mut ControlWidget<'_>,
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/graph.rs#L235
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/graph.rs:235:13
|
235 | &config.data_flow,
| ^^^^^^^^^^^^^^^^^ help: change this to: `config.data_flow`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/graph.rs#L214
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/graph.rs:214:26
|
214 | data_values: &config.data_flow,
| ^^^^^^^^^^^^^^^^^ help: change this to: `config.data_flow`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/graph.rs#L179
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/graph.rs:179:13
|
179 | &config.data_pressure,
| ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `config.data_pressure`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/graph.rs#L158
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/graph.rs:158:26
|
158 | data_values: &config.data_pressure,
| ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `config.data_pressure`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/error.rs#L94
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/error.rs:94:5
|
94 | text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(color::WHITE.with_alpha(0.5)), font_size: Some(ERROR_MESSAGE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/error.rs:92:5
|
92 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/error.rs#L90
error: the following explicit lifetimes could be elided: 'a
--> src/widget/error.rs:90:17
|
90 | fn text_message<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
90 - fn text_message<'a>(master: &mut ControlWidget<'a>, config: &Config) {
90 + fn text_message(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/error.rs#L79
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/error.rs:79:5
|
79 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(ERROR_TITLE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/error.rs:77:5
|
77 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/error.rs#L75
error: the following explicit lifetimes could be elided: 'a
--> src/widget/error.rs:75:15
|
75 | fn text_title<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
75 - fn text_title<'a>(master: &mut ControlWidget<'a>, config: &Config) {
75 + fn text_title(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/error.rs#L61
error: the following explicit lifetimes could be elided: 'a
--> src/widget/error.rs:61:17
|
61 | fn text_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
61 - fn text_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
61 + fn text_wrapper(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/error.rs#L53
error: the following explicit lifetimes could be elided: 'a
--> src/widget/error.rs:53:10
|
53 | fn image<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
53 - fn image<'a>(master: &mut ControlWidget<'a>, config: &Config) {
53 + fn image(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/error.rs#L94
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/error.rs:94:5
|
94 | text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(color::WHITE.with_alpha(0.5)), font_size: Some(ERROR_MESSAGE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/error.rs:92:5
|
92 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/error.rs#L90
error: the following explicit lifetimes could be elided: 'a
--> src/widget/error.rs:90:17
|
90 | fn text_message<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
90 - fn text_message<'a>(master: &mut ControlWidget<'a>, config: &Config) {
90 + fn text_message(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L392
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:392:19
|
392 | fn content_button<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
392 - fn content_button<'a>(master: &mut ControlWidget<'a>, config: &Config) {
392 + fn content_button(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/error.rs#L79
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/error.rs:79:5
|
79 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(ERROR_TITLE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/error.rs:77:5
|
77 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/error.rs#L75
error: the following explicit lifetimes could be elided: 'a
--> src/widget/error.rs:75:15
|
75 | fn text_title<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
75 - fn text_title<'a>(master: &mut ControlWidget<'a>, config: &Config) {
75 + fn text_title(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/end_of_line.rs#L379
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/end_of_line.rs:379:9
|
379 | text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(color::WHITE), font_size: Some(END_OF_LINE_CONTENT_DETAILS_TEXT_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/end_of_line.rs:377:9
|
377 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L374
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:374:25
|
374 | fn content_details_text<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
374 - fn content_details_text<'a>(master: &mut ControlWidget<'a>, config: &Config) {
374 + fn content_details_text(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/error.rs#L61
error: the following explicit lifetimes could be elided: 'a
--> src/widget/error.rs:61:17
|
61 | fn text_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
61 - fn text_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
61 + fn text_wrapper(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/end_of_line.rs#L354
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/end_of_line.rs:354:9
|
354 | container_style.color = Some(color::BLACK);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::canvas::Style { color: Some(color::BLACK), border: Some(1.0), border_color: Some(CONTENT_DETAILS_BOX_BORDER_COLOR), ..Default::default() }` and removing relevant reassignments
--> src/widget/end_of_line.rs:352:9
|
352 | let mut container_style = widget::canvas::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/error.rs#L53
error: the following explicit lifetimes could be elided: 'a
--> src/widget/error.rs:53:10
|
53 | fn image<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
53 - fn image<'a>(master: &mut ControlWidget<'a>, config: &Config) {
53 + fn image(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L349
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:349:24
|
349 | fn content_details_box<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
349 - fn content_details_box<'a>(master: &mut ControlWidget<'a>, config: &Config) {
349 + fn content_details_box(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/end_of_line.rs#L335
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/end_of_line.rs:335:5
|
335 | text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(color::WHITE.alpha(0.5)), font_size: Some(END_OF_LINE_CONTENT_TEXT_MESSAGE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/end_of_line.rs:333:5
|
333 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L331
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:331:25
|
331 | fn content_text_message<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
331 - fn content_text_message<'a>(master: &mut ControlWidget<'a>, config: &Config) {
331 + fn content_text_message(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/end_of_line.rs#L320
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/end_of_line.rs:320:5
|
320 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(END_OF_LINE_CONTENT_TEXT_TITLE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/end_of_line.rs:318:5
|
318 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L392
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:392:19
|
392 | fn content_button<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
392 - fn content_button<'a>(master: &mut ControlWidget<'a>, config: &Config) {
392 + fn content_button(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L316
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:316:23
|
316 | fn content_text_title<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
316 - fn content_text_title<'a>(master: &mut ControlWidget<'a>, config: &Config) {
316 + fn content_text_title(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/end_of_line.rs#L379
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/end_of_line.rs:379:9
|
379 | text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(color::WHITE), font_size: Some(END_OF_LINE_CONTENT_DETAILS_TEXT_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/end_of_line.rs:377:9
|
377 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L303
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:303:25
|
303 | fn content_text_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
303 - fn content_text_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
303 + fn content_text_wrapper(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L295
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:295:17
|
295 | fn content_icon<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
295 - fn content_icon<'a>(master: &mut ControlWidget<'a>, config: &Config) {
295 + fn content_icon(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/end_of_line.rs#L268
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/end_of_line.rs:268:5
|
268 | / container_style.color = Some(if config.error || config.success {
269 | | color::TRANSPARENT
270 | | } else {
271 | | color::WHITE.alpha(0.01)
272 | | });
| |_______^
|
note: consider initializing the variable with `conrod_core::widget::canvas::Style { color: Some(if config.error || config.success {
color::TRANSPARENT
} else {
color::WHITE.alpha(0.01)
}), border: Some(2.0), border_color: Some(if config.error {
CONTENT_BOX_ERROR_BORDER_COLOR
} else if config.success {
CONTENT_BOX_SUCCESS_BORDER_COLOR
} else {
CONTENT_BOX_DEFAULT_BORDER_COLOR
}), ..Default::default() }` and removing relevant reassignments
--> src/widget/end_of_line.rs:266:5
|
266 | let mut container_style = widget::canvas::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L374
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:374:25
|
374 | fn content_details_text<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
374 - fn content_details_text<'a>(master: &mut ControlWidget<'a>, config: &Config) {
374 + fn content_details_text(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L264
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:264:16
|
264 | fn content_box<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
264 - fn content_box<'a>(master: &mut ControlWidget<'a>, config: &Config) {
264 + fn content_box(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/end_of_line.rs#L354
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/end_of_line.rs:354:9
|
354 | container_style.color = Some(color::BLACK);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::canvas::Style { color: Some(color::BLACK), border: Some(1.0), border_color: Some(CONTENT_DETAILS_BOX_BORDER_COLOR), ..Default::default() }` and removing relevant reassignments
--> src/widget/end_of_line.rs:352:9
|
352 | let mut container_style = widget::canvas::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L349
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:349:24
|
349 | fn content_details_box<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
349 - fn content_details_box<'a>(master: &mut ControlWidget<'a>, config: &Config) {
349 + fn content_details_box(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/end_of_line.rs#L335
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/end_of_line.rs:335:5
|
335 | text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(color::WHITE.alpha(0.5)), font_size: Some(END_OF_LINE_CONTENT_TEXT_MESSAGE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/end_of_line.rs:333:5
|
333 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L331
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:331:25
|
331 | fn content_text_message<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
331 - fn content_text_message<'a>(master: &mut ControlWidget<'a>, config: &Config) {
331 + fn content_text_message(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L251
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:251:20
|
251 | fn content_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
251 - fn content_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
251 + fn content_wrapper(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/end_of_line.rs#L320
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/end_of_line.rs:320:5
|
320 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(END_OF_LINE_CONTENT_TEXT_TITLE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/end_of_line.rs:318:5
|
318 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L316
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:316:23
|
316 | fn content_text_title<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
316 - fn content_text_title<'a>(master: &mut ControlWidget<'a>, config: &Config) {
316 + fn content_text_title(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/end_of_line.rs#L232
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/end_of_line.rs:232:9
|
232 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(match current_step.cmp(&ongoing_step) {
Ordering::Greater => color::WHITE.alpha(0.1),
Ordering::Less => color::WHITE,
Ordering::Equal => color::BLACK,
}), font_size: Some(END_OF_LINE_STEPS_INDEX_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/end_of_line.rs:230:9
|
230 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L303
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:303:25
|
303 | fn content_text_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
303 - fn content_text_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
303 + fn content_text_wrapper(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L224
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:224:18
|
224 | fn steps_indexes<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
224 - fn steps_indexes<'a>(master: &mut ControlWidget<'a>, config: &Config) {
224 + fn steps_indexes(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L295
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:295:17
|
295 | fn content_icon<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
295 - fn content_icon<'a>(master: &mut ControlWidget<'a>, config: &Config) {
295 + fn content_icon(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/end_of_line.rs#L268
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/end_of_line.rs:268:5
|
268 | / container_style.color = Some(if config.error || config.success {
269 | | color::TRANSPARENT
270 | | } else {
271 | | color::WHITE.alpha(0.01)
272 | | });
| |_______^
|
note: consider initializing the variable with `conrod_core::widget::canvas::Style { color: Some(if config.error || config.success {
color::TRANSPARENT
} else {
color::WHITE.alpha(0.01)
}), border: Some(2.0), border_color: Some(if config.error {
CONTENT_BOX_ERROR_BORDER_COLOR
} else if config.success {
CONTENT_BOX_SUCCESS_BORDER_COLOR
} else {
CONTENT_BOX_DEFAULT_BORDER_COLOR
}), ..Default::default() }` and removing relevant reassignments
--> src/widget/end_of_line.rs:266:5
|
266 | let mut container_style = widget::canvas::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L193
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:193:18
|
193 | fn steps_circles<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
193 - fn steps_circles<'a>(master: &mut ControlWidget<'a>, config: &Config) {
193 + fn steps_circles(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L264
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:264:16
|
264 | fn content_box<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
264 - fn content_box<'a>(master: &mut ControlWidget<'a>, config: &Config) {
264 + fn content_box(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L169
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:169:19
|
169 | fn steps_progress<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
169 - fn steps_progress<'a>(master: &mut ControlWidget<'a>, config: &Config) {
169 + fn steps_progress(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L251
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:251:20
|
251 | fn content_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
251 - fn content_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
251 + fn content_wrapper(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L156
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:156:16
|
156 | fn steps_items<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
156 - fn steps_items<'a>(master: &mut ControlWidget<'a>, config: &Config) {
156 + fn steps_items(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/end_of_line.rs#L232
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/end_of_line.rs:232:9
|
232 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(match current_step.cmp(&ongoing_step) {
Ordering::Greater => color::WHITE.alpha(0.1),
Ordering::Less => color::WHITE,
Ordering::Equal => color::BLACK,
}), font_size: Some(END_OF_LINE_STEPS_INDEX_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/end_of_line.rs:230:9
|
230 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L143
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:143:18
|
143 | fn steps_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
143 - fn steps_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
143 + fn steps_wrapper(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L224
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:224:18
|
224 | fn steps_indexes<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
224 - fn steps_indexes<'a>(master: &mut ControlWidget<'a>, config: &Config) {
224 + fn steps_indexes(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/end_of_line.rs#L131
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/end_of_line.rs:131:5
|
131 | text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(color::WHITE.alpha(0.65)), font_size: Some(END_OF_LINE_TITLE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/end_of_line.rs:129:5
|
129 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L127
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:127:20
|
127 | fn title_secondary<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
127 - fn title_secondary<'a>(master: &mut ControlWidget<'a>, config: &Config) {
127 + fn title_secondary(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/end_of_line.rs#L115
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/end_of_line.rs:115:5
|
115 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(END_OF_LINE_TITLE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/end_of_line.rs:113:5
|
113 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L111
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:111:18
|
111 | fn title_primary<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
111 - fn title_primary<'a>(master: &mut ControlWidget<'a>, config: &Config) {
111 + fn title_primary(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L193
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:193:18
|
193 | fn steps_circles<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
193 - fn steps_circles<'a>(master: &mut ControlWidget<'a>, config: &Config) {
193 + fn steps_circles(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L101
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:101:20
|
101 | fn title_separator<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
101 - fn title_separator<'a>(master: &mut ControlWidget<'a>, config: &Config) {
101 + fn title_separator(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L90
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:90:18
|
90 | fn title_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
90 - fn title_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
90 + fn title_wrapper(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L169
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:169:19
|
169 | fn steps_progress<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
169 - fn steps_progress<'a>(master: &mut ControlWidget<'a>, config: &Config) {
169 + fn steps_progress(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L156
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:156:16
|
156 | fn steps_items<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
156 - fn steps_items<'a>(master: &mut ControlWidget<'a>, config: &Config) {
156 + fn steps_items(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L143
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:143:18
|
143 | fn steps_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
143 - fn steps_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
143 + fn steps_wrapper(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/end_of_line.rs#L131
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/end_of_line.rs:131:5
|
131 | text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(color::WHITE.alpha(0.65)), font_size: Some(END_OF_LINE_TITLE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/end_of_line.rs:129:5
|
129 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L127
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:127:20
|
127 | fn title_secondary<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
127 - fn title_secondary<'a>(master: &mut ControlWidget<'a>, config: &Config) {
127 + fn title_secondary(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/end_of_line.rs#L115
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/end_of_line.rs:115:5
|
115 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(END_OF_LINE_TITLE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/end_of_line.rs:113:5
|
113 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L111
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:111:18
|
111 | fn title_primary<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
111 - fn title_primary<'a>(master: &mut ControlWidget<'a>, config: &Config) {
111 + fn title_primary(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L101
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:101:20
|
101 | fn title_separator<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
101 - fn title_separator<'a>(master: &mut ControlWidget<'a>, config: &Config) {
101 + fn title_separator(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/end_of_line.rs#L90
error: the following explicit lifetimes could be elided: 'a
--> src/widget/end_of_line.rs:90:18
|
90 | fn title_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
90 - fn title_wrapper<'a>(master: &mut ControlWidget<'a>, config: &Config) {
90 + fn title_wrapper(master: &mut ControlWidget<'_>, config: &Config) {
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/alarms.rs#L120
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/alarms.rs:120:5
|
120 | title_text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(14), ..Default::default() }` and removing relevant reassignments
--> src/widget/alarms.rs:118:5
|
118 | let mut title_text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/alarm.rs#L123
error: the following explicit lifetimes could be elided: 'a
--> src/widget/alarm.rs:123:12
|
123 | fn message<'a>(
| ^^
124 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
123 ~ fn message(
124 ~ master: &mut ControlWidget<'_>,
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/alarms.rs#L120
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/alarms.rs:120:5
|
120 | title_text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(14), ..Default::default() }` and removing relevant reassignments
--> src/widget/alarms.rs:118:5
|
118 | let mut title_text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/alarm.rs#L113
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/alarm.rs:113:5
|
113 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(DISPLAY_ALARM_CODE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/alarm.rs:111:5
|
111 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/alarm.rs#L90
error: the following explicit lifetimes could be elided: 'a
--> src/widget/alarm.rs:90:9
|
90 | fn code<'a>(
| ^^
91 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
90 ~ fn code(
91 ~ master: &mut ControlWidget<'_>,
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/alarm.rs#L69
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/alarm.rs:69:21
|
69 | message(master, &config, alarm_code, alarm_priority, index);
| ^^^^^^^ help: change this to: `config`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/alarm.rs#L68
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/alarm.rs:68:18
|
68 | code(master, &config, alarm_code, alarm_priority, index);
| ^^^^^^^ help: change this to: `config`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the following explicit lifetimes could be elided: 'a:
src/widget/alarm.rs#L123
error: the following explicit lifetimes could be elided: 'a
--> src/widget/alarm.rs:123:12
|
123 | fn message<'a>(
| ^^
124 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
123 ~ fn message(
124 ~ master: &mut ControlWidget<'_>,
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/alarm.rs#L41
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/alarm.rs:41:5
|
41 | style.border = Some(0.0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::canvas::Style { border: Some(0.0), border_color: Some(color::TRANSPARENT), color: Some(color::TRANSPARENT), ..Default::default() }` and removing relevant reassignments
--> src/widget/alarm.rs:39:5
|
39 | let mut style = canvas::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/alarm.rs#L113
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/alarm.rs:113:5
|
113 | text_style.font_id = Some(Some(master.fonts.bold));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.bold)), color: Some(color::WHITE), font_size: Some(DISPLAY_ALARM_CODE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/alarm.rs:111:5
|
111 | let mut text_style = conrod_core::widget::primitive::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/alarm.rs#L90
error: the following explicit lifetimes could be elided: 'a
--> src/widget/alarm.rs:90:9
|
90 | fn code<'a>(
| ^^
91 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
90 ~ fn code(
91 ~ master: &mut ControlWidget<'_>,
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/alarm.rs#L69
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/alarm.rs:69:21
|
69 | message(master, &config, alarm_code, alarm_priority, index);
| ^^^^^^^ help: change this to: `config`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/alarm.rs#L68
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/alarm.rs:68:18
|
68 | code(master, &config, alarm_code, alarm_priority, index);
| ^^^^^^^ help: change this to: `config`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/alarm.rs#L41
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/alarm.rs:41:5
|
41 | style.border = Some(0.0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::canvas::Style { border: Some(0.0), border_color: Some(color::TRANSPARENT), color: Some(color::TRANSPARENT), ..Default::default() }` and removing relevant reassignments
--> src/widget/alarm.rs:39:5
|
39 | let mut style = canvas::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/advanced_settings.rs#L419
error: the following explicit lifetimes could be elided: 'a
--> src/widget/advanced_settings.rs:419:14
|
419 | fn draw_text<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config, text: Text) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
419 - fn draw_text<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config, text: Text) {
419 + fn draw_text(index: usize, master: &mut ControlWidget<'_>, config: &Config, text: Text) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/advanced_settings.rs#L419
error: the following explicit lifetimes could be elided: 'a
--> src/widget/advanced_settings.rs:419:14
|
419 | fn draw_text<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config, text: Text) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
419 - fn draw_text<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config, text: Text) {
419 + fn draw_text(index: usize, master: &mut ControlWidget<'_>, config: &Config, text: Text) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/advanced_settings.rs#L389
error: the following explicit lifetimes could be elided: 'a
--> src/widget/advanced_settings.rs:389:15
|
389 | fn draw_field<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config, field: Field) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
389 - fn draw_field<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config, field: Field) {
389 + fn draw_field(index: usize, master: &mut ControlWidget<'_>, config: &Config, field: Field) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/advanced_settings.rs#L341
error: the following explicit lifetimes could be elided: 'a
--> src/widget/advanced_settings.rs:341:18
|
341 | fn form_settings<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
341 - fn form_settings<'a>(master: &mut ControlWidget<'a>, config: &Config) {
341 + fn form_settings(master: &mut ControlWidget<'_>, config: &Config) {
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/advanced_settings.rs#L329
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/advanced_settings.rs:329:13
|
329 | &line_data[index].1
| ^^^^^^^^^^^^^^^^^^^ help: change this to: `line_data[index].1`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the following explicit lifetimes could be elided: 'a:
src/widget/advanced_settings.rs#L389
error: the following explicit lifetimes could be elided: 'a
--> src/widget/advanced_settings.rs:389:15
|
389 | fn draw_field<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config, field: Field) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
389 - fn draw_field<'a>(index: usize, master: &mut ControlWidget<'a>, config: &Config, field: Field) {
389 + fn draw_field(index: usize, master: &mut ControlWidget<'_>, config: &Config, field: Field) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/advanced_settings.rs#L341
error: the following explicit lifetimes could be elided: 'a
--> src/widget/advanced_settings.rs:341:18
|
341 | fn form_settings<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
341 - fn form_settings<'a>(master: &mut ControlWidget<'a>, config: &Config) {
341 + fn form_settings(master: &mut ControlWidget<'_>, config: &Config) {
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/widget/advanced_settings.rs#L329
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/widget/advanced_settings.rs:329:13
|
329 | &line_data[index].1
| ^^^^^^^^^^^^^^^^^^^ help: change this to: `line_data[index].1`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/advanced_settings.rs#L321
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/advanced_settings.rs:321:9
|
321 | value_text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(color::WHITE), font_size: Some(ADVANCED_SETTINGS_LINE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/advanced_settings.rs:319:9
|
319 | let mut value_text_style = widget::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
= note: `-D clippy::field-reassign-with-default` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::field_reassign_with_default)]`
|
the following explicit lifetimes could be elided: 'a:
src/widget/advanced_settings.rs#L284
error: the following explicit lifetimes could be elided: 'a
--> src/widget/advanced_settings.rs:284:26
|
284 | fn form_statistics_lines<'a>(
| ^^
285 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
284 ~ fn form_statistics_lines(
285 ~ master: &mut ControlWidget<'_>,
|
|
field assignment outside of initializer for an instance created with Default::default():
src/widget/advanced_settings.rs#L321
error: field assignment outside of initializer for an instance created with Default::default()
--> src/widget/advanced_settings.rs:321:9
|
321 | value_text_style.font_id = Some(Some(master.fonts.regular));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `conrod_core::widget::text::Style { font_id: Some(Some(master.fonts.regular)), color: Some(color::WHITE), font_size: Some(ADVANCED_SETTINGS_LINE_FONT_SIZE), ..Default::default() }` and removing relevant reassignments
--> src/widget/advanced_settings.rs:319:9
|
319 | let mut value_text_style = widget::text::Style::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
= note: `-D clippy::field-reassign-with-default` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::field_reassign_with_default)]`
|
use of `unwrap_or_else` to construct default value:
src/widget/advanced_settings.rs#L276
error: use of `unwrap_or_else` to construct default value
--> src/widget/advanced_settings.rs:276:18
|
276 | .unwrap_or_else(|| "".to_string()),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
the following explicit lifetimes could be elided: 'a:
src/widget/advanced_settings.rs#L284
error: the following explicit lifetimes could be elided: 'a
--> src/widget/advanced_settings.rs:284:26
|
284 | fn form_statistics_lines<'a>(
| ^^
285 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
284 ~ fn form_statistics_lines(
285 ~ master: &mut ControlWidget<'_>,
|
|
use of `unwrap_or_else` to construct default value:
src/widget/advanced_settings.rs#L231
error: use of `unwrap_or_else` to construct default value
--> src/widget/advanced_settings.rs:231:18
|
231 | .unwrap_or_else(|| "".to_string()),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
= note: `-D clippy::unwrap-or-default` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unwrap_or_default)]`
|
use of `unwrap_or_else` to construct default value:
src/widget/advanced_settings.rs#L276
error: use of `unwrap_or_else` to construct default value
--> src/widget/advanced_settings.rs:276:18
|
276 | .unwrap_or_else(|| "".to_string()),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
|
use of `unwrap_or_else` to construct default value:
src/widget/advanced_settings.rs#L231
error: use of `unwrap_or_else` to construct default value
--> src/widget/advanced_settings.rs:231:18
|
231 | .unwrap_or_else(|| "".to_string()),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
= note: `-D clippy::unwrap-or-default` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unwrap_or_default)]`
|
the following explicit lifetimes could be elided: 'a:
src/widget/advanced_settings.rs#L172
error: the following explicit lifetimes could be elided: 'a
--> src/widget/advanced_settings.rs:172:20
|
172 | fn form_statistics<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
172 - fn form_statistics<'a>(master: &mut ControlWidget<'a>, config: &Config) {
172 + fn form_statistics(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/advanced_settings.rs#L149
error: the following explicit lifetimes could be elided: 'a
--> src/widget/advanced_settings.rs:149:9
|
149 | fn form<'a>(master: &mut ControlWidget<'a>, config: &Config, parent_size: (f64, f64)) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
149 - fn form<'a>(master: &mut ControlWidget<'a>, config: &Config, parent_size: (f64, f64)) {
149 + fn form(master: &mut ControlWidget<'_>, config: &Config, parent_size: (f64, f64)) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/advanced_settings.rs#L172
error: the following explicit lifetimes could be elided: 'a
--> src/widget/advanced_settings.rs:172:20
|
172 | fn form_statistics<'a>(master: &mut ControlWidget<'a>, config: &Config) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
172 - fn form_statistics<'a>(master: &mut ControlWidget<'a>, config: &Config) {
172 + fn form_statistics(master: &mut ControlWidget<'_>, config: &Config) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/advanced_settings.rs#L149
error: the following explicit lifetimes could be elided: 'a
--> src/widget/advanced_settings.rs:149:9
|
149 | fn form<'a>(master: &mut ControlWidget<'a>, config: &Config, parent_size: (f64, f64)) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
149 - fn form<'a>(master: &mut ControlWidget<'a>, config: &Config, parent_size: (f64, f64)) {
149 + fn form(master: &mut ControlWidget<'_>, config: &Config, parent_size: (f64, f64)) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/advanced_settings.rs#L131
error: the following explicit lifetimes could be elided: 'a
--> src/widget/advanced_settings.rs:131:14
|
131 | fn group_tab<'a>(
| ^^
132 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
131 ~ fn group_tab(
132 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/advanced_settings.rs#L131
error: the following explicit lifetimes could be elided: 'a
--> src/widget/advanced_settings.rs:131:14
|
131 | fn group_tab<'a>(
| ^^
132 | master: &mut ControlWidget<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
131 ~ fn group_tab(
132 ~ master: &mut ControlWidget<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/advanced_settings.rs#L111
error: the following explicit lifetimes could be elided: 'a
--> src/widget/advanced_settings.rs:111:10
|
111 | fn group<'a>(master: &mut ControlWidget<'a>, config: &Config, parent_size: (f64, f64)) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
111 - fn group<'a>(master: &mut ControlWidget<'a>, config: &Config, parent_size: (f64, f64)) {
111 + fn group(master: &mut ControlWidget<'_>, config: &Config, parent_size: (f64, f64)) {
|
|
the following explicit lifetimes could be elided: 'a:
src/widget/advanced_settings.rs#L111
error: the following explicit lifetimes could be elided: 'a
--> src/widget/advanced_settings.rs:111:10
|
111 | fn group<'a>(master: &mut ControlWidget<'a>, config: &Config, parent_size: (f64, f64)) {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
111 - fn group<'a>(master: &mut ControlWidget<'a>, config: &Config, parent_size: (f64, f64)) {
111 + fn group(master: &mut ControlWidget<'_>, config: &Config, parent_size: (f64, f64)) {
|
|
clamp-like pattern without using clamp function:
src/utilities/battery.rs#L39
error: clamp-like pattern without using clamp function
--> src/utilities/battery.rs:39:5
|
39 | min(100, max(0, unchecked_percent as i8)) as u8
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `(unchecked_percent as i8).clamp(0, 100)`
|
= note: clamp will panic if max < min
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp
= note: `-D clippy::manual-clamp` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::manual_clamp)]`
|
clamp-like pattern without using clamp function:
src/utilities/battery.rs#L39
error: clamp-like pattern without using clamp function
--> src/utilities/battery.rs:39:5
|
39 | min(100, max(0, unchecked_percent as i8)) as u8
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `(unchecked_percent as i8).clamp(0, 100)`
|
= note: clamp will panic if max < min
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp
= note: `-D clippy::manual-clamp` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::manual_clamp)]`
|
this loop never actually loops:
src/lora/controller.rs#L203
error: this loop never actually loops
--> src/lora/controller.rs:203:41
|
203 | / ... while transmission.is_err() {
204 | | ... unimplemented!();
205 | | ... }
| |_______________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
= note: `#[deny(clippy::never_loop)]` on by default
|
this loop never actually loops:
src/lora/controller.rs#L203
error: this loop never actually loops
--> src/lora/controller.rs:203:41
|
203 | / ... while transmission.is_err() {
204 | | ... unimplemented!();
205 | | ... }
| |_______________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
= note: `#[deny(clippy::never_loop)]` on by default
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/locale/accessor.rs#L42
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/locale/accessor.rs:42:51
|
42 | let formatted = bundle.format_pattern(&pattern, arguments, &mut errors);
| ^^^^^^^^ help: change this to: `pattern`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/locale/accessor.rs#L42
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/locale/accessor.rs:42:51
|
42 | let formatted = bundle.format_pattern(&pattern, arguments, &mut errors);
| ^^^^^^^^ help: change this to: `pattern`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/screen.rs#L960
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/screen.rs:960:35
|
960 | machine_snapshot: &self.machine_snapshot.unwrap(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `self.machine_snapshot.unwrap()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
`format!` in `format!` args:
src/display/screen.rs#L784
error: `format!` in `format!` args
--> src/display/screen.rs:784:21
|
784 | / format!(
785 | | "{} ({} {})",
786 | | &APP_I18N.t("telemetry-unit-milliseconds"),
787 | | &APP_I18N.t("telemetry-label-ratio-details"),
... |
791 | | )
792 | | )
| |_____________________^
|
= help: combine the `format!(..)` arguments with the outer `format!(..)` call
= help: or consider changing `format!` to `format_args!`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#format_in_format_args
= note: `-D clippy::format-in-format-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::format_in_format_args)]`
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/screen.rs#L444
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/screen.rs:444:37
|
444 | self.render_telemetry_ratio(&machine_snapshot, mode);
| ^^^^^^^^^^^^^^^^^ help: change this to: `machine_snapshot`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/screen.rs#L441
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/screen.rs:441:45
|
441 | self.render_telemetry_minute_volume(&machine_snapshot);
| ^^^^^^^^^^^^^^^^^ help: change this to: `machine_snapshot`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/screen.rs#L438
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/screen.rs:438:37
|
438 | self.render_telemetry_tidal(&machine_snapshot, mode);
| ^^^^^^^^^^^^^^^^^ help: change this to: `machine_snapshot`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/screen.rs#L435
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/screen.rs:435:38
|
435 | self.render_telemetry_cycles(&machine_snapshot);
| ^^^^^^^^^^^^^^^^^ help: change this to: `machine_snapshot`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/screen.rs#L432
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/screen.rs:432:36
|
432 | self.render_telemetry_peep(&machine_snapshot, has_target_pressure);
| ^^^^^^^^^^^^^^^^^ help: change this to: `machine_snapshot`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/screen.rs#L429
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/screen.rs:429:39
|
429 | self.render_telemetry_plateau(&machine_snapshot, mode, has_target_pressure);
| ^^^^^^^^^^^^^^^^^ help: change this to: `machine_snapshot`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/screen.rs#L426
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/screen.rs:426:36
|
426 | self.render_telemetry_peak(&machine_snapshot, has_target_pressure);
| ^^^^^^^^^^^^^^^^^ help: change this to: `machine_snapshot`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/screen.rs#L960
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/screen.rs:960:35
|
960 | machine_snapshot: &self.machine_snapshot.unwrap(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `self.machine_snapshot.unwrap()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
`format!` in `format!` args:
src/display/screen.rs#L784
error: `format!` in `format!` args
--> src/display/screen.rs:784:21
|
784 | / format!(
785 | | "{} ({} {})",
786 | | &APP_I18N.t("telemetry-unit-milliseconds"),
787 | | &APP_I18N.t("telemetry-label-ratio-details"),
... |
791 | | )
792 | | )
| |_____________________^
|
= help: combine the `format!(..)` arguments with the outer `format!(..)` call
= help: or consider changing `format!` to `format_args!`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#format_in_format_args
= note: `-D clippy::format-in-format-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::format_in_format_args)]`
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/renderer.rs#L262
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/renderer.rs:262:52
|
262 | index_from_end_of_line_failure(&eol_failure).unwrap_or(0)
| ^^^^^^^^^^^^ help: change this to: `eol_failure`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/renderer.rs#L259
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/renderer.rs:259:49
|
259 | index_from_end_of_line_step(&eol_step).unwrap_or(0)
| ^^^^^^^^^ help: change this to: `eol_step`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/screen.rs#L444
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/screen.rs:444:37
|
444 | self.render_telemetry_ratio(&machine_snapshot, mode);
| ^^^^^^^^^^^^^^^^^ help: change this to: `machine_snapshot`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/screen.rs#L441
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/screen.rs:441:45
|
441 | self.render_telemetry_minute_volume(&machine_snapshot);
| ^^^^^^^^^^^^^^^^^ help: change this to: `machine_snapshot`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/screen.rs#L438
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/screen.rs:438:37
|
438 | self.render_telemetry_tidal(&machine_snapshot, mode);
| ^^^^^^^^^^^^^^^^^ help: change this to: `machine_snapshot`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/screen.rs#L435
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/screen.rs:435:38
|
435 | self.render_telemetry_cycles(&machine_snapshot);
| ^^^^^^^^^^^^^^^^^ help: change this to: `machine_snapshot`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/screen.rs#L432
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/screen.rs:432:36
|
432 | self.render_telemetry_peep(&machine_snapshot, has_target_pressure);
| ^^^^^^^^^^^^^^^^^ help: change this to: `machine_snapshot`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/screen.rs#L429
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/screen.rs:429:39
|
429 | self.render_telemetry_plateau(&machine_snapshot, mode, has_target_pressure);
| ^^^^^^^^^^^^^^^^^ help: change this to: `machine_snapshot`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/screen.rs#L426
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/screen.rs:426:36
|
426 | self.render_telemetry_peak(&machine_snapshot, has_target_pressure);
| ^^^^^^^^^^^^^^^^^ help: change this to: `machine_snapshot`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/renderer.rs#L262
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/renderer.rs:262:52
|
262 | index_from_end_of_line_failure(&eol_failure).unwrap_or(0)
| ^^^^^^^^^^^^ help: change this to: `eol_failure`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/renderer.rs#L259
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/renderer.rs:259:49
|
259 | index_from_end_of_line_step(&eol_step).unwrap_or(0)
| ^^^^^^^^^ help: change this to: `eol_step`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this `match` can be collapsed into the outer `if let`:
src/display/events.rs#L67
error: this `match` can be collapsed into the outer `if let`
--> src/display/events.rs:67:17
|
67 | / match event {
68 | | WindowEvent::CloseRequested
69 | | | WindowEvent::KeyboardInput {
70 | | input:
... |
79 | | _ => (),
80 | | }
| |_________________^
|
help: the outer pattern can be modified to include the inner pattern
--> src/display/events.rs:66:41
|
66 | if let Event::WindowEvent { event, .. } = event.clone() {
| ^^^^^ replace this binding
67 | match event {
68 | / WindowEvent::CloseRequested
69 | | | WindowEvent::KeyboardInput {
70 | | input:
71 | | KeyboardInput {
... |
75 | | ..
76 | | } => {
| |_____________________^ with this pattern, prefixed by `event`:
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match
= note: `-D clippy::collapsible-match` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::collapsible_match)]`
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/events.rs#L59
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/events.rs:59:43
|
59 | for event in self.event_loop.next(&mut events_loop) {
| ^^^^^^^^^^^^^^^^ help: change this to: `events_loop`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this `match` can be collapsed into the outer `if let`:
src/display/events.rs#L67
error: this `match` can be collapsed into the outer `if let`
--> src/display/events.rs:67:17
|
67 | / match event {
68 | | WindowEvent::CloseRequested
69 | | | WindowEvent::KeyboardInput {
70 | | input:
... |
79 | | _ => (),
80 | | }
| |_________________^
|
help: the outer pattern can be modified to include the inner pattern
--> src/display/events.rs:66:41
|
66 | if let Event::WindowEvent { event, .. } = event.clone() {
| ^^^^^ replace this binding
67 | match event {
68 | / WindowEvent::CloseRequested
69 | | | WindowEvent::KeyboardInput {
70 | | input:
71 | | KeyboardInput {
... |
75 | | ..
76 | | } => {
| |_____________________^ with this pattern, prefixed by `event`:
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match
= note: `-D clippy::collapsible-match` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::collapsible_match)]`
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/events.rs#L59
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/events.rs:59:43
|
59 | for event in self.event_loop.next(&mut events_loop) {
| ^^^^^^^^^^^^^^^^ help: change this to: `events_loop`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/drawer.rs#L313
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/drawer.rs:313:30
|
313 | self.renderer.render(&mut self.interface, &self.chip);
| ^^^^^^^^^^^^^^^^^^^ help: change this to: `self.interface`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/drawer.rs#L313
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/drawer.rs:313:30
|
313 | self.renderer.render(&mut self.interface, &self.chip);
| ^^^^^^^^^^^^^^^^^^^ help: change this to: `self.interface`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/drawer.rs#L256
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/drawer.rs:256:25
|
256 | &port,
| ^^^^^ help: change this to: `port`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/drawer.rs#L256
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/drawer.rs:256:25
|
256 | &port,
| ^^^^^ help: change this to: `port`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/drawer.rs#L135
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/drawer.rs:135:21
|
135 | &mut self.interface,
| ^^^^^^^^^^^^^^^^^^^ help: change this to: `self.interface`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/drawer.rs#L135
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/drawer.rs:135:21
|
135 | &mut self.interface,
| ^^^^^^^^^^^^^^^^^^^ help: change this to: `self.interface`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/drawer.rs#L118
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/drawer.rs:118:56
|
118 | match events_handler.handle(&self.display, &mut self.interface, &mut self.events_loop) {
| ^^^^^^^^^^^^^^^^^^^ help: change this to: `self.interface`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/drawer.rs#L118
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/drawer.rs:118:56
|
118 | match events_handler.handle(&self.display, &mut self.interface, &mut self.events_loop) {
| ^^^^^^^^^^^^^^^^^^^ help: change this to: `self.interface`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the following explicit lifetimes could be elided: 'a:
src/display/drawer.rs#L88
error: the following explicit lifetimes could be elided: 'a
--> src/display/drawer.rs:88:6
|
88 | impl<'a> DisplayDrawer<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `-D clippy::needless-lifetimes` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_lifetimes)]`
help: elide the lifetimes
|
88 - impl<'a> DisplayDrawer<'a> {
88 + impl DisplayDrawer<'_> {
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/drawer.rs#L68
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/drawer.rs:68:22
|
68 | ids.allocate(&mut interface);
| ^^^^^^^^^^^^^^ help: change this to: `interface`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the following explicit lifetimes could be elided: 'a:
src/display/drawer.rs#L88
error: the following explicit lifetimes could be elided: 'a
--> src/display/drawer.rs:88:6
|
88 | impl<'a> DisplayDrawer<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `-D clippy::needless-lifetimes` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_lifetimes)]`
help: elide the lifetimes
|
88 - impl<'a> DisplayDrawer<'a> {
88 + impl DisplayDrawer<'_> {
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/display/drawer.rs#L68
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/display/drawer.rs:68:22
|
68 | ids.allocate(&mut interface);
| ^^^^^^^^^^^^^^ help: change this to: `interface`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/config/settings.rs#L57
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/config/settings.rs:57:34
|
57 | if LocaleCode::from_code(&configuration.locale.as_str()).is_none() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `configuration.locale.as_str()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/config/settings.rs#L57
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/config/settings.rs:57:34
|
57 | if LocaleCode::from_code(&configuration.locale.as_str()).is_none() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `configuration.locale.as_str()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
iterating on a map's keys:
src/chip/mod.rs#L1217
error: iterating on a map's keys
--> src/chip/mod.rs:1217:59
|
1217 | let cleared_alarm_codes: Vec<AlarmCode> = self
| ___________________________________________________________^
1218 | | .ongoing_alarms
1219 | | .iter()
1220 | | .map(|(ongoing_alarm_code, _)| *ongoing_alarm_code)
| |_______________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_kv_map
= note: `-D clippy::iter-kv-map` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::iter_kv_map)]`
help: try
|
1217 ~ let cleared_alarm_codes: Vec<AlarmCode> = self
1218 + .ongoing_alarms.keys().map(|ongoing_alarm_code| *ongoing_alarm_code)
|
|
iterating on a map's keys:
src/chip/mod.rs#L1217
error: iterating on a map's keys
--> src/chip/mod.rs:1217:59
|
1217 | let cleared_alarm_codes: Vec<AlarmCode> = self
| ___________________________________________________________^
1218 | | .ongoing_alarms
1219 | | .iter()
1220 | | .map(|(ongoing_alarm_code, _)| *ongoing_alarm_code)
| |_______________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_kv_map
= note: `-D clippy::iter-kv-map` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::iter_kv_map)]`
help: try
|
1217 ~ let cleared_alarm_codes: Vec<AlarmCode> = self
1218 + .ongoing_alarms.keys().map(|ongoing_alarm_code| *ongoing_alarm_code)
|
|
this if-then-else expression assigns a bool literal:
src/chip/mod.rs#L1007
error: this if-then-else expression assigns a bool literal
--> src/chip/mod.rs:1007:17
|
1007 | / if ack.value == 0 {
1008 | | self.last_machine_snapshot.trigger_enabled = false;
1009 | | } else {
1010 | | self.last_machine_snapshot.trigger_enabled = true;
1011 | | }
| |_________________^ help: you can reduce it to: `self.last_machine_snapshot.trigger_enabled = ack.value != 0;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool_assign
= note: `-D clippy::needless-bool-assign` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_bool_assign)]`
|
this if-then-else expression assigns a bool literal:
src/chip/mod.rs#L1007
error: this if-then-else expression assigns a bool literal
--> src/chip/mod.rs:1007:17
|
1007 | / if ack.value == 0 {
1008 | | self.last_machine_snapshot.trigger_enabled = false;
1009 | | } else {
1010 | | self.last_machine_snapshot.trigger_enabled = true;
1011 | | }
| |_________________^ help: you can reduce it to: `self.last_machine_snapshot.trigger_enabled = ack.value != 0;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool_assign
= note: `-D clippy::needless-bool-assign` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_bool_assign)]`
|
usage of a legacy numeric method:
src/chip/macros.rs#L136
error: usage of a legacy numeric method
--> src/chip/macros.rs:136:38
|
136 | result = <$return_type>::min_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:550:9
|
550 | / gen_add_data_generic!(
551 | | self,
552 | | FLOW,
553 | | data_flow,
... |
556 | | clean_expired_data_flow_from_time
557 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
136 | result = <$return_type>::MIN as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L135
error: usage of a legacy numeric method
--> src/chip/macros.rs:135:44
|
135 | } else if result < <$return_type>::min_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:550:9
|
550 | / gen_add_data_generic!(
551 | | self,
552 | | FLOW,
553 | | data_flow,
... |
556 | | clean_expired_data_flow_from_time
557 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
135 | } else if result < <$return_type>::MIN as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L134
error: usage of a legacy numeric method
--> src/chip/macros.rs:134:38
|
134 | result = <$return_type>::max_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:550:9
|
550 | / gen_add_data_generic!(
551 | | self,
552 | | FLOW,
553 | | data_flow,
... |
556 | | clean_expired_data_flow_from_time
557 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
134 | result = <$return_type>::MAX as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L133
error: usage of a legacy numeric method
--> src/chip/macros.rs:133:37
|
133 | if result > <$return_type>::max_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:550:9
|
550 | / gen_add_data_generic!(
551 | | self,
552 | | FLOW,
553 | | data_flow,
... |
556 | | clean_expired_data_flow_from_time
557 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
133 | if result > <$return_type>::MAX as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L136
error: usage of a legacy numeric method
--> src/chip/macros.rs:136:38
|
136 | result = <$return_type>::min_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:550:9
|
550 | / gen_add_data_generic!(
551 | | self,
552 | | FLOW,
553 | | data_flow,
... |
556 | | clean_expired_data_flow_from_time
557 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
136 | result = <$return_type>::MIN as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L135
error: usage of a legacy numeric method
--> src/chip/macros.rs:135:44
|
135 | } else if result < <$return_type>::min_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:550:9
|
550 | / gen_add_data_generic!(
551 | | self,
552 | | FLOW,
553 | | data_flow,
... |
556 | | clean_expired_data_flow_from_time
557 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
135 | } else if result < <$return_type>::MIN as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L134
error: usage of a legacy numeric method
--> src/chip/macros.rs:134:38
|
134 | result = <$return_type>::max_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:550:9
|
550 | / gen_add_data_generic!(
551 | | self,
552 | | FLOW,
553 | | data_flow,
... |
556 | | clean_expired_data_flow_from_time
557 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
134 | result = <$return_type>::MAX as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L133
error: usage of a legacy numeric method
--> src/chip/macros.rs:133:37
|
133 | if result > <$return_type>::max_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:550:9
|
550 | / gen_add_data_generic!(
551 | | self,
552 | | FLOW,
553 | | data_flow,
... |
556 | | clean_expired_data_flow_from_time
557 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
133 | if result > <$return_type>::MAX as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L136
error: usage of a legacy numeric method
--> src/chip/macros.rs:136:38
|
136 | result = <$return_type>::min_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:548:24
|
548 | let net_flow = gen_cap_number_substract!(inspiratory_flow, expiratory_flow, i16, i32);
| ---------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
136 | result = <$return_type>::MIN as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L135
error: usage of a legacy numeric method
--> src/chip/macros.rs:135:44
|
135 | } else if result < <$return_type>::min_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:548:24
|
548 | let net_flow = gen_cap_number_substract!(inspiratory_flow, expiratory_flow, i16, i32);
| ---------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
135 | } else if result < <$return_type>::MIN as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L134
error: usage of a legacy numeric method
--> src/chip/macros.rs:134:38
|
134 | result = <$return_type>::max_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:548:24
|
548 | let net_flow = gen_cap_number_substract!(inspiratory_flow, expiratory_flow, i16, i32);
| ---------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
134 | result = <$return_type>::MAX as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L133
error: usage of a legacy numeric method
--> src/chip/macros.rs:133:37
|
133 | if result > <$return_type>::max_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:548:24
|
548 | let net_flow = gen_cap_number_substract!(inspiratory_flow, expiratory_flow, i16, i32);
| ---------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
133 | if result > <$return_type>::MAX as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L136
error: usage of a legacy numeric method
--> src/chip/macros.rs:136:38
|
136 | result = <$return_type>::min_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:530:9
|
530 | / gen_add_data_generic!(
531 | | self,
532 | | PRESSURE,
533 | | data_pressure,
... |
536 | | clean_expired_data_pressure_from_time
537 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
136 | result = <$return_type>::MIN as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L135
error: usage of a legacy numeric method
--> src/chip/macros.rs:135:44
|
135 | } else if result < <$return_type>::min_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:530:9
|
530 | / gen_add_data_generic!(
531 | | self,
532 | | PRESSURE,
533 | | data_pressure,
... |
536 | | clean_expired_data_pressure_from_time
537 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
135 | } else if result < <$return_type>::MIN as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L134
error: usage of a legacy numeric method
--> src/chip/macros.rs:134:38
|
134 | result = <$return_type>::max_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:530:9
|
530 | / gen_add_data_generic!(
531 | | self,
532 | | PRESSURE,
533 | | data_pressure,
... |
536 | | clean_expired_data_pressure_from_time
537 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
134 | result = <$return_type>::MAX as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L133
error: usage of a legacy numeric method
--> src/chip/macros.rs:133:37
|
133 | if result > <$return_type>::max_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:530:9
|
530 | / gen_add_data_generic!(
531 | | self,
532 | | PRESSURE,
533 | | data_pressure,
... |
536 | | clean_expired_data_pressure_from_time
537 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
133 | if result > <$return_type>::MAX as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L136
error: usage of a legacy numeric method
--> src/chip/macros.rs:136:38
|
136 | result = <$return_type>::min_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:530:9
|
530 | / gen_add_data_generic!(
531 | | self,
532 | | PRESSURE,
533 | | data_pressure,
... |
536 | | clean_expired_data_pressure_from_time
537 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
136 | result = <$return_type>::MIN as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L135
error: usage of a legacy numeric method
--> src/chip/macros.rs:135:44
|
135 | } else if result < <$return_type>::min_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:530:9
|
530 | / gen_add_data_generic!(
531 | | self,
532 | | PRESSURE,
533 | | data_pressure,
... |
536 | | clean_expired_data_pressure_from_time
537 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
135 | } else if result < <$return_type>::MIN as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L134
error: usage of a legacy numeric method
--> src/chip/macros.rs:134:38
|
134 | result = <$return_type>::max_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:530:9
|
530 | / gen_add_data_generic!(
531 | | self,
532 | | PRESSURE,
533 | | data_pressure,
... |
536 | | clean_expired_data_pressure_from_time
537 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
134 | result = <$return_type>::MAX as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L133
error: usage of a legacy numeric method
--> src/chip/macros.rs:133:37
|
133 | if result > <$return_type>::max_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:530:9
|
530 | / gen_add_data_generic!(
531 | | self,
532 | | PRESSURE,
533 | | data_pressure,
... |
536 | | clean_expired_data_pressure_from_time
537 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: `-D clippy::legacy-numeric-constants` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::legacy_numeric_constants)]`
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
133 | if result > <$return_type>::MAX as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L136
error: usage of a legacy numeric method
--> src/chip/macros.rs:136:38
|
136 | result = <$return_type>::min_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:550:9
|
550 | / gen_add_data_generic!(
551 | | self,
552 | | FLOW,
553 | | data_flow,
... |
556 | | clean_expired_data_flow_from_time
557 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
136 | result = <$return_type>::MIN as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L135
error: usage of a legacy numeric method
--> src/chip/macros.rs:135:44
|
135 | } else if result < <$return_type>::min_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:550:9
|
550 | / gen_add_data_generic!(
551 | | self,
552 | | FLOW,
553 | | data_flow,
... |
556 | | clean_expired_data_flow_from_time
557 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
135 | } else if result < <$return_type>::MIN as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L134
error: usage of a legacy numeric method
--> src/chip/macros.rs:134:38
|
134 | result = <$return_type>::max_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:550:9
|
550 | / gen_add_data_generic!(
551 | | self,
552 | | FLOW,
553 | | data_flow,
... |
556 | | clean_expired_data_flow_from_time
557 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
134 | result = <$return_type>::MAX as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L133
error: usage of a legacy numeric method
--> src/chip/macros.rs:133:37
|
133 | if result > <$return_type>::max_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:550:9
|
550 | / gen_add_data_generic!(
551 | | self,
552 | | FLOW,
553 | | data_flow,
... |
556 | | clean_expired_data_flow_from_time
557 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
133 | if result > <$return_type>::MAX as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L136
error: usage of a legacy numeric method
--> src/chip/macros.rs:136:38
|
136 | result = <$return_type>::min_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:550:9
|
550 | / gen_add_data_generic!(
551 | | self,
552 | | FLOW,
553 | | data_flow,
... |
556 | | clean_expired_data_flow_from_time
557 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
136 | result = <$return_type>::MIN as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L135
error: usage of a legacy numeric method
--> src/chip/macros.rs:135:44
|
135 | } else if result < <$return_type>::min_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:550:9
|
550 | / gen_add_data_generic!(
551 | | self,
552 | | FLOW,
553 | | data_flow,
... |
556 | | clean_expired_data_flow_from_time
557 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
135 | } else if result < <$return_type>::MIN as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L134
error: usage of a legacy numeric method
--> src/chip/macros.rs:134:38
|
134 | result = <$return_type>::max_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:550:9
|
550 | / gen_add_data_generic!(
551 | | self,
552 | | FLOW,
553 | | data_flow,
... |
556 | | clean_expired_data_flow_from_time
557 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
134 | result = <$return_type>::MAX as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L133
error: usage of a legacy numeric method
--> src/chip/macros.rs:133:37
|
133 | if result > <$return_type>::max_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:550:9
|
550 | / gen_add_data_generic!(
551 | | self,
552 | | FLOW,
553 | | data_flow,
... |
556 | | clean_expired_data_flow_from_time
557 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
133 | if result > <$return_type>::MAX as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L136
error: usage of a legacy numeric method
--> src/chip/macros.rs:136:38
|
136 | result = <$return_type>::min_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:548:24
|
548 | let net_flow = gen_cap_number_substract!(inspiratory_flow, expiratory_flow, i16, i32);
| ---------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
136 | result = <$return_type>::MIN as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L135
error: usage of a legacy numeric method
--> src/chip/macros.rs:135:44
|
135 | } else if result < <$return_type>::min_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:548:24
|
548 | let net_flow = gen_cap_number_substract!(inspiratory_flow, expiratory_flow, i16, i32);
| ---------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
135 | } else if result < <$return_type>::MIN as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L134
error: usage of a legacy numeric method
--> src/chip/macros.rs:134:38
|
134 | result = <$return_type>::max_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:548:24
|
548 | let net_flow = gen_cap_number_substract!(inspiratory_flow, expiratory_flow, i16, i32);
| ---------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
134 | result = <$return_type>::MAX as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L133
error: usage of a legacy numeric method
--> src/chip/macros.rs:133:37
|
133 | if result > <$return_type>::max_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:548:24
|
548 | let net_flow = gen_cap_number_substract!(inspiratory_flow, expiratory_flow, i16, i32);
| ---------------------------------------------------------------------- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
133 | if result > <$return_type>::MAX as $internal_type {
| ~~~
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/chip/mod.rs#L305
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/chip/mod.rs:305:75
|
305 | alarm_list.sort_by(|(_, priority1), (_, priority2)| priority2.cmp(&priority1));
| ^^^^^^^^^^ help: change this to: `priority1`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/chip/mod.rs#L304
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/chip/mod.rs:304:63
|
304 | alarm_list.sort_by(|(code1, _), (code2, _)| code1.cmp(&code2));
| ^^^^^^ help: change this to: `code2`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
usage of a legacy numeric method:
src/chip/macros.rs#L136
error: usage of a legacy numeric method
--> src/chip/macros.rs:136:38
|
136 | result = <$return_type>::min_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:530:9
|
530 | / gen_add_data_generic!(
531 | | self,
532 | | PRESSURE,
533 | | data_pressure,
... |
536 | | clean_expired_data_pressure_from_time
537 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
136 | result = <$return_type>::MIN as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L135
error: usage of a legacy numeric method
--> src/chip/macros.rs:135:44
|
135 | } else if result < <$return_type>::min_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:530:9
|
530 | / gen_add_data_generic!(
531 | | self,
532 | | PRESSURE,
533 | | data_pressure,
... |
536 | | clean_expired_data_pressure_from_time
537 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
135 | } else if result < <$return_type>::MIN as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L134
error: usage of a legacy numeric method
--> src/chip/macros.rs:134:38
|
134 | result = <$return_type>::max_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:530:9
|
530 | / gen_add_data_generic!(
531 | | self,
532 | | PRESSURE,
533 | | data_pressure,
... |
536 | | clean_expired_data_pressure_from_time
537 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
134 | result = <$return_type>::MAX as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L133
error: usage of a legacy numeric method
--> src/chip/macros.rs:133:37
|
133 | if result > <$return_type>::max_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:530:9
|
530 | / gen_add_data_generic!(
531 | | self,
532 | | PRESSURE,
533 | | data_pressure,
... |
536 | | clean_expired_data_pressure_from_time
537 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
133 | if result > <$return_type>::MAX as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L136
error: usage of a legacy numeric method
--> src/chip/macros.rs:136:38
|
136 | result = <$return_type>::min_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:530:9
|
530 | / gen_add_data_generic!(
531 | | self,
532 | | PRESSURE,
533 | | data_pressure,
... |
536 | | clean_expired_data_pressure_from_time
537 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
136 | result = <$return_type>::MIN as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L135
error: usage of a legacy numeric method
--> src/chip/macros.rs:135:44
|
135 | } else if result < <$return_type>::min_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:530:9
|
530 | / gen_add_data_generic!(
531 | | self,
532 | | PRESSURE,
533 | | data_pressure,
... |
536 | | clean_expired_data_pressure_from_time
537 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
135 | } else if result < <$return_type>::MIN as $internal_type {
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L134
error: usage of a legacy numeric method
--> src/chip/macros.rs:134:38
|
134 | result = <$return_type>::max_value() as $internal_type;
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:530:9
|
530 | / gen_add_data_generic!(
531 | | self,
532 | | PRESSURE,
533 | | data_pressure,
... |
536 | | clean_expired_data_pressure_from_time
537 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
134 | result = <$return_type>::MAX as $internal_type;
| ~~~
|
usage of a legacy numeric method:
src/chip/macros.rs#L133
error: usage of a legacy numeric method
--> src/chip/macros.rs:133:37
|
133 | if result > <$return_type>::max_value() as $internal_type {
| ^^^^^^^^^^^
|
::: src/chip/mod.rs:530:9
|
530 | / gen_add_data_generic!(
531 | | self,
532 | | PRESSURE,
533 | | data_pressure,
... |
536 | | clean_expired_data_pressure_from_time
537 | | );
| |_________- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: `-D clippy::legacy-numeric-constants` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::legacy_numeric_constants)]`
= note: this error originates in the macro `gen_cap_number_substract` which comes from the expansion of the macro `gen_add_data_generic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
|
133 | if result > <$return_type>::MAX as $internal_type {
| ~~~
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/chip/mod.rs#L305
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/chip/mod.rs:305:75
|
305 | alarm_list.sort_by(|(_, priority1), (_, priority2)| priority2.cmp(&priority1));
| ^^^^^^^^^^ help: change this to: `priority1`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/chip/mod.rs#L304
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/chip/mod.rs:304:63
|
304 | alarm_list.sort_by(|(code1, _), (code2, _)| code1.cmp(&code2));
| ^^^^^^ help: change this to: `code2`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
casting to the same type is unnecessary (`i16` -> `i16`):
src/chip/settings/mod.rs#L108
error: casting to the same type is unnecessary (`i16` -> `i16`)
--> src/chip/settings/mod.rs:108:9
|
108 | current_index as i16
| ^^^^^^^^^^^^^^^^^^^^ help: try: `current_index`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `-D clippy::unnecessary-cast` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_cast)]`
|
methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value:
src/chip/settings/mod.rs#L62
error: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
--> src/chip/settings/mod.rs:62:19
|
62 | fn to_toggled(&self) -> Self {
| ^^^^^
|
= help: consider choosing a less ambiguous name
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
= note: `-D clippy::wrong-self-convention` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::wrong_self_convention)]`
|
casting to the same type is unnecessary (`i16` -> `i16`):
src/chip/settings/mod.rs#L108
error: casting to the same type is unnecessary (`i16` -> `i16`)
--> src/chip/settings/mod.rs:108:9
|
108 | current_index as i16
| ^^^^^^^^^^^^^^^^^^^^ help: try: `current_index`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `-D clippy::unnecessary-cast` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_cast)]`
|
methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value:
src/chip/settings/mod.rs#L62
error: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
--> src/chip/settings/mod.rs:62:19
|
62 | fn to_toggled(&self) -> Self {
| ^^^^^
|
= help: consider choosing a less ambiguous name
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
= note: `-D clippy::wrong-self-convention` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::wrong_self_convention)]`
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/chip/settings/advanced.rs#L85
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/chip/settings/advanced.rs:85:52
|
85 | APP_I18N.replace(LocaleLoader::new(&self.locale.to_code()).into_bundle());
| ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `self.locale.to_code()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/chip/settings/advanced.rs#L85
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/chip/settings/advanced.rs:85:52
|
85 | APP_I18N.replace(LocaleLoader::new(&self.locale.to_code()).into_bundle());
| ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `self.locale.to_code()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
|
field `data_snapshot` is never read:
src/widget/status.rs#L41
error: field `data_snapshot` is never read
--> src/widget/status.rs:41:9
|
30 | pub struct Config<'a> {
| ------ field in this struct
...
41 | pub data_snapshot: Option<&'a DataSnapshot>,
| ^^^^^^^^^^^^^
|
field `machine_snapshot` is never read:
src/widget/graph.rs#L66
error: field `machine_snapshot` is never read
--> src/widget/graph.rs:66:9
|
41 | pub struct Config<'a> {
| ------ field in this struct
...
66 | pub machine_snapshot: &'a MachineStateSnapshot,
| ^^^^^^^^^^^^^^^^
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
|
field `data_snapshot` is never read:
src/widget/status.rs#L41
error: field `data_snapshot` is never read
--> src/widget/status.rs:41:9
|
30 | pub struct Config<'a> {
| ------ field in this struct
...
41 | pub data_snapshot: Option<&'a DataSnapshot>,
| ^^^^^^^^^^^^^
|
field `machine_snapshot` is never read:
src/widget/graph.rs#L66
error: field `machine_snapshot` is never read
--> src/widget/graph.rs:66:9
|
41 | pub struct Config<'a> {
| ------ field in this struct
...
66 | pub machine_snapshot: &'a MachineStateSnapshot,
| ^^^^^^^^^^^^^^^^
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
|
unexpected `cfg` condition value: `cargo-clippy`:
src/main.rs#L9
error: unexpected `cfg` condition value: `cargo-clippy`
--> src/main.rs:9:13
|
9 | #![cfg_attr(feature = "cargo-clippy", allow(clippy::field_reassign_with_default))]
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `default`, `fonts-cjk`, `lora`, `rn2903`, and `sysfs_gpio`
= help: consider adding `cargo-clippy` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: `-D unexpected-cfgs` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unexpected_cfgs)]`
|
unexpected `cfg` condition value: `cargo-clippy`:
src/main.rs#L9
error: unexpected `cfg` condition value: `cargo-clippy`
--> src/main.rs:9:13
|
9 | #![cfg_attr(feature = "cargo-clippy", allow(clippy::field_reassign_with_default))]
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `default`, `fonts-cjk`, `lora`, `rn2903`, and `sysfs_gpio`
= help: consider adding `cargo-clippy` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: `-D unexpected-cfgs` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unexpected_cfgs)]`
|
`feature = "cargo-clippy"` was replaced by `clippy`:
src/main.rs#L9
error: `feature = "cargo-clippy"` was replaced by `clippy`
--> src/main.rs:9:13
|
9 | #![cfg_attr(feature = "cargo-clippy", allow(clippy::field_reassign_with_default))]
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `clippy`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_clippy_cfg_attr
= note: `-D clippy::deprecated-clippy-cfg-attr` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::deprecated_clippy_cfg_attr)]`
|
`feature = "cargo-clippy"` was replaced by `clippy`:
src/main.rs#L9
error: `feature = "cargo-clippy"` was replaced by `clippy`
--> src/main.rs:9:13
|
9 | #![cfg_attr(feature = "cargo-clippy", allow(clippy::field_reassign_with_default))]
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `clippy`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_clippy_cfg_attr
= note: `-D clippy::deprecated-clippy-cfg-attr` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::deprecated_clippy_cfg_attr)]`
|
check
Clippy had exited with the 101 exit code
|
check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|