chore: clippy
This commit is contained in:
parent
a7f8a62807
commit
7bab53c5b4
5 changed files with 79 additions and 101 deletions
|
|
@ -45,7 +45,7 @@ impl UserData {
|
|||
//TODO: do not reread duplicate paths, cache data by path?
|
||||
BgSource::Path(path) => {
|
||||
if !self.bg_path_data.contains_key(path) {
|
||||
match fs::read(&path) {
|
||||
match fs::read(path) {
|
||||
Ok(bytes) => {
|
||||
self.bg_path_data.insert(path.clone(), bytes);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue