Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Sep 26, 2024
1 parent 151d1f2 commit e2b97ba
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions components_esp32c3.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
dependencies:
espressif/mdns:
component_hash: d8ae7aa491ff97aea1d00d514a1de42cdbaaf1bce10df183968fa5594b904de7
dependencies:
- name: idf
require: private
version: '>=5.0'
source:
registry_url: https://components.espressif.com/
type: service
version: 1.2.5
idf:
source:
type: idf
version: 5.3.1
direct_dependencies:
- espressif/mdns
manifest_hash: c3b94c87f4e7f6400185dd295864ac2a11d6dea38982a89ee366397f983b68f6
target: esp32c3
version: 2.0.0
1 change: 1 addition & 0 deletions src/http/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ impl EspHttpConnection {
pub fn new(configuration: &Configuration) -> Result<Self, EspError> {
let event_handler = Box::new(None);

#[allow(clippy::manual_c_str_literals)]
let mut native_config = esp_http_client_config_t {
// The ESP-IDF HTTP client is really picky on being initialized with a valid URL
// So we set something here, which will be changed later anyway, in the request() method
Expand Down
1 change: 1 addition & 0 deletions src/nvs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ impl Drop for NvsDefault {
}

impl NvsPartitionId for NvsDefault {
#[allow(clippy::manual_c_str_literals)]
fn name(&self) -> &CStr {
CStr::from_bytes_with_nul(b"\0").unwrap()
}
Expand Down

0 comments on commit e2b97ba

Please sign in to comment.