Skip to content

Commit c35c58b

Browse files
committed
🧹 Run cargo fmt and fix in Travis
1 parent 4470115 commit c35c58b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@ jobs:
88
allow_failures:
99
- rust: nightly
1010
fast_finish: true
11-
after_script:
11+
before_script:
12+
- rustup component add rustfmt
13+
script:
14+
- cargo build --verbose
15+
- cargo test --verbose
1216
- cargo fmt -- --check

src/ini.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,6 @@ impl Ini {
676676
///Returns `Some(Option<String>)` if the value exists or else, `None`.
677677
pub fn remove_key(&mut self, section: &str, key: &str) -> Option<Option<String>> {
678678
let (section, key) = self.autocase(section, key);
679-
self.map
680-
.get_mut(&section)?
681-
.remove(&key)
679+
self.map.get_mut(&section)?.remove(&key)
682680
}
683681
}

0 commit comments

Comments
 (0)