Skip to content

Commit

Permalink
Merge pull request #201 from fastly/joeshaw/clippy-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joeshaw authored Nov 9, 2022
2 parents 1905d9a + 47d70b6 commit 48ea9ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/config/dictionaries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl Dictionary {
/// Reads the contents of a JSON dictionary file.
fn read_json_contents(file: &Path) -> Result<HashMap<String, String>, DictionaryConfigError> {
// Read the contents of the given file.
let data = fs::read_to_string(&file).map_err(DictionaryConfigError::IoError)?;
let data = fs::read_to_string(file).map_err(DictionaryConfigError::IoError)?;

// Deserialize the contents of the given JSON file.
let json = match serde_json::from_str(&data)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/config/object_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl TryFrom<Table> for ObjectStoreConfig {
err: ObjectStoreConfigError::PathNotAString(key.to_string()),
}
})?;
fs::read(&path).map_err(|e| {
fs::read(path).map_err(|e| {
FastlyConfigError::InvalidObjectStoreDefinition {
name: store.to_string(),
err: ObjectStoreConfigError::IoError(e),
Expand Down
2 changes: 1 addition & 1 deletion lib/src/wiggle_abi/req_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ impl FastlyHttpReq for Session {
.as_array(config.host_override_len)
.as_slice()?;

Some(HeaderValue::from_bytes(&*byte_slice)?)
Some(HeaderValue::from_bytes(&byte_slice)?)
} else {
None
};
Expand Down

0 comments on commit 48ea9ef

Please sign in to comment.