Skip to content

Commit

Permalink
Merge pull request #1726 from fermyon/fix-clippy-errors
Browse files Browse the repository at this point in the history
Fix clippy errors from 1.72
  • Loading branch information
rylev authored Sep 6, 2023
2 parents ee2adde + 0038bdb commit 5cffa2c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions crates/app/src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ impl<T> MetadataKey<T> {

impl<T> Clone for MetadataKey<T> {
fn clone(&self) -> Self {
Self {
key: self.key,
_phantom: PhantomData,
}
*self
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/host_component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl<HC: HostComponent> HostComponentDataHandle<HC> {

impl<HC: HostComponent> Clone for HostComponentDataHandle<HC> {
fn clone(&self) -> Self {
Self::from_any(self.inner)
*self
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/e2e-testing/src/metadata_extractor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn extract_version_from_logs(appname: &str, logs: &str) -> String {

/// Extracts routes of app being deployed by parsing logs
pub fn extract_routes_from_logs(logs: &str) -> Vec<AppRoute> {
let re: Regex = Regex::new(r##"^\s*(.*): (https?://[^\s^\\(]+)(.*)$"##).unwrap();
let re: Regex = Regex::new(r"^\s*(.*): (https?://[^\s^\\(]+)(.*)$").unwrap();
let mut route_start = false;
let lines = logs.split('\n');
let mut routes: Vec<AppRoute> = vec![];
Expand Down
2 changes: 1 addition & 1 deletion src/watch_filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl Filter {

/// A default set of ignore patterns that can be used by the consumer of Filter.
pub fn default_ignore_patterns() -> Vec<WatchPattern> {
vec!["*.swp"]
["*.swp"]
.iter()
.map(|i| WatchPattern {
glob: i.to_string(),
Expand Down

0 comments on commit 5cffa2c

Please sign in to comment.