aboutsummaryrefslogtreecommitdiff
path: root/examples/file_info.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/file_info.rs')
-rw-r--r--examples/file_info.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/file_info.rs b/examples/file_info.rs
index 315b5c3..64969b6 100644
--- a/examples/file_info.rs
+++ b/examples/file_info.rs
@@ -34,7 +34,7 @@ fn real_main() -> i32 {
}
}
- if (&*file.name()).ends_with('/') {
+ if (*file.name()).ends_with('/') {
println!(
"Entry {} is a directory with name \"{}\"",
i,
@@ -49,5 +49,6 @@ fn real_main() -> i32 {
);
}
}
- return 0;
+
+ 0
}