Skip to content

Commit 98e645d

Browse files
committed
clippy
1 parent db08a43 commit 98e645d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust/bambam-osm/src/app/wci/way_attributes_for_wci.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,5 +286,5 @@ fn walk_eligible(
286286
}
287287
}
288288
}
289-
return false;
289+
false
290290
}

rust/bambam-osm/src/model/osm/graph/compass_writer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ mod filenames {
3535
impl CompassWriter for OsmGraphVectorized {
3636
fn write_compass(&self, output_directory: &Path, overwrite: bool) -> Result<(), OsmError> {
3737
if !output_directory.is_dir() {
38-
if let Err(_) = std::fs::create_dir(output_directory) {
38+
if std::fs::create_dir(output_directory).is_err() {
3939
let dirname = output_directory.as_os_str().to_string_lossy();
4040
return Err(OsmError::InternalError(format!(
4141
"unable to create directory {}",

0 commit comments

Comments
 (0)