Skip to content

Commit

Permalink
Fixing clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
notdanilo committed Nov 7, 2023
1 parent de85cc6 commit bd51043
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ecosystem/python/parser/src/parser/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl Parser<&std::path::Path> for MetadataParser {
.ok_or("Failed to find metadata file.")?
.path()
.join("METADATA");
let content = std::fs::read_to_string(&metadata_file)?;
let content = std::fs::read_to_string(metadata_file)?;
let metadata = python_pkginfo::Metadata::parse(content.as_bytes())
.map_err(|e| Error::Message(format!("Failed to parse metadata: {}", e)))?;
self.parse(metadata, config)
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/src/gui/ui/utils/string_editable_field/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mod string_editable;
pub use string_editable::*;

#[derive(Default)]
pub struct StringField;
pub struct StringField {}

impl StringField {
pub fn new() -> Self {
Expand Down

0 comments on commit bd51043

Please sign in to comment.