aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/resource_files.rs
diff options
context:
space:
mode:
authorJohannes Linke <johannes.linke@posteo.de>2016-01-02 16:51:01 +0100
committerJohannes Linke <johannes.linke@posteo.de>2016-01-02 23:27:15 +0100
commit6b215f38eefc98853244c2ec6f4187ae6f000417 (patch)
treecf4dbc65e6b6fa641359b713f91b596bf9f9a666 /components/util/resource_files.rs
parentb1ca3d1cdff412c5ae12113c3681f789becebabc (diff)
downloadservo-6b215f38eefc98853244c2ec6f4187ae6f000417.tar.gz
servo-6b215f38eefc98853244c2ec6f4187ae6f000417.zip
Fix a bunch of clippy lints
Diffstat (limited to 'components/util/resource_files.rs')
-rw-r--r--components/util/resource_files.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/util/resource_files.rs b/components/util/resource_files.rs
index cd7363f9c4c..67ae9f6550a 100644
--- a/components/util/resource_files.rs
+++ b/components/util/resource_files.rs
@@ -33,7 +33,7 @@ pub fn resources_dir_path() -> PathBuf {
// FIXME: Find a way to not rely on the executable being
// under `<servo source>[/$target_triple]/target/debug`
// or `<servo source>[/$target_triple]/target/release`.
- let mut path = env::current_exe().ok().expect("can't get exe path");
+ let mut path = env::current_exe().expect("can't get exe path");
path.pop();
path.push("resources");
if !path.is_dir() { // resources dir not in same dir as exe?