rustfmt
This commit is contained in:
parent
7094e0e258
commit
c4ac9c530c
2 changed files with 25 additions and 10 deletions
25
.idea/workspace.xml
generated
25
.idea/workspace.xml
generated
|
|
@ -7,7 +7,8 @@
|
|||
<cargoProject FILE="$PROJECT_DIR$/Cargo.toml" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="7b22105a-0bfb-4392-932c-cec93348d8e9" name="Changes" comment="Update comments and task metadata Removed outdated comments from `.vscode/settings.json` and updated task metadata in `.idea/workspace.xml`. These updates also include the removal of the static_cell dependency and general cleanup of project settings.">
|
||||
<list default="true" id="7b22105a-0bfb-4392-932c-cec93348d8e9" name="Changes" comment="Fix typo and update task metadata Corrected a typo in a comment in `main.rs` from "full time" to "full type". Updated task metadata and comments in `.idea/workspace.xml` to reflect changes and ensure consistency.">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main.rs" beforeDir="false" afterPath="$PROJECT_DIR$/src/main.rs" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
|
|
@ -47,9 +48,13 @@
|
|||
"org.rust.cargo.project.model.PROJECT_DISCOVERY": "true",
|
||||
"org.rust.cargo.project.model.impl.CargoExternalSystemProjectAware.subscribe.first.balloon": "",
|
||||
"org.rust.first.attach.projects": "true",
|
||||
"settings.editor.selected.configurable": "language.rust.cargo.check",
|
||||
"vue.rearranger.settings.migration": "true"
|
||||
}
|
||||
}]]></component>
|
||||
<component name="RsExternalLinterProjectSettings">
|
||||
<option name="channel" value="nightly" />
|
||||
</component>
|
||||
<component name="RunManager" selected="Cargo.Run esp_hal_probe">
|
||||
<configuration name="Run esp_hal_probe" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
|
||||
<option name="buildProfileId" value="dev" />
|
||||
|
|
@ -90,6 +95,9 @@
|
|||
<component name="RustProjectSettings">
|
||||
<option name="toolchainHomeDirectory" value="/usr/bin" />
|
||||
</component>
|
||||
<component name="RustfmtProjectSettings">
|
||||
<option name="useRustfmt" value="true" />
|
||||
</component>
|
||||
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
|
|
@ -100,7 +108,7 @@
|
|||
<updated>1725751529946</updated>
|
||||
<workItem from="1725751530671" duration="64000" />
|
||||
<workItem from="1725752698276" duration="5000" />
|
||||
<workItem from="1725758634613" duration="1927000" />
|
||||
<workItem from="1725758634613" duration="2055000" />
|
||||
</task>
|
||||
<task id="LOCAL-00001" summary="latest stable esp-hal + hello world">
|
||||
<option name="closed" value="true" />
|
||||
|
|
@ -142,7 +150,15 @@
|
|||
<option name="project" value="LOCAL" />
|
||||
<updated>1725760534919</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="6" />
|
||||
<task id="LOCAL-00006" summary="Fix typo and update task metadata Corrected a typo in a comment in `main.rs` from "full time" to "full type". Updated task metadata and comments in `.idea/workspace.xml` to reflect changes and ensure consistency.">
|
||||
<option name="closed" value="true" />
|
||||
<created>1725760574384</created>
|
||||
<option name="number" value="00006" />
|
||||
<option name="presentableId" value="LOCAL-00006" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1725760574384</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="7" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
|
|
@ -165,6 +181,7 @@
|
|||
<MESSAGE value="Remove static_cell dependency Removed the static_cell dependency from Cargo.toml and Cargo.lock. Also cleaned up comments and metadata in main.rs and updated .idea project settings." />
|
||||
<MESSAGE value="Remove outdated comments and update task metadata Removed obsolete comments from `.vscode/settings.json` and updated task metadata in `.idea/workspace.xml`. These changes include the removal of the static_cell dependency and cleanup of various project settings." />
|
||||
<MESSAGE value="Update comments and task metadata Removed outdated comments from `.vscode/settings.json` and updated task metadata in `.idea/workspace.xml`. These updates also include the removal of the static_cell dependency and general cleanup of project settings." />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="Update comments and task metadata Removed outdated comments from `.vscode/settings.json` and updated task metadata in `.idea/workspace.xml`. These updates also include the removal of the static_cell dependency and general cleanup of project settings." />
|
||||
<MESSAGE value="Fix typo and update task metadata Corrected a typo in a comment in `main.rs` from "full time" to "full type". Updated task metadata and comments in `.idea/workspace.xml` to reflect changes and ensure consistency." />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="Fix typo and update task metadata Corrected a typo in a comment in `main.rs` from "full time" to "full type". Updated task metadata and comments in `.idea/workspace.xml` to reflect changes and ensure consistency." />
|
||||
</component>
|
||||
</project>
|
||||
10
src/main.rs
10
src/main.rs
|
|
@ -1,14 +1,12 @@
|
|||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
use defmt::info;
|
||||
use embassy_executor::Spawner;
|
||||
use embassy_time::{Duration, Timer};
|
||||
use defmt::info;
|
||||
use esp_hal::{peripherals::TIMG0, timer::timg::TimerGroup, Blocking};
|
||||
#[allow(unused)]
|
||||
use {esp_backtrace as _, defmt_rtt as _};
|
||||
use esp_hal::Blocking;
|
||||
use esp_hal::peripherals::TIMG0;
|
||||
use esp_hal::timer::timg::TimerGroup;
|
||||
use {defmt_rtt as _, esp_backtrace as _};
|
||||
|
||||
#[embassy_executor::task]
|
||||
async fn run() {
|
||||
|
|
@ -33,4 +31,4 @@ async fn main(spawner: Spawner) {
|
|||
info!("Bing!");
|
||||
Timer::after(Duration::from_millis(5_000)).await;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue