Skip to content

Commit 15fd785

Browse files
committed
Fix current build warnings
This changes the minimum supported rustc, and that can be documented in CI if necessary
1 parent 5148159 commit 15fd785

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: CI
22
on: [push, pull_request]
3-
43
jobs:
54
test:
65
name: Test

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,3 @@ Add this to your `Cargo.toml`:
1313
[dependencies]
1414
getopts = "0.2"
1515
```
16-
17-
## Rust Version Support
18-
19-
The minimum supported Rust version is 1.18.

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,15 +503,15 @@ impl Options {
503503

504504
/// Derive a custom formatted message from a set of options. The formatted options provided to
505505
/// a closure as an iterator.
506-
pub fn usage_with_format<F: FnMut(&mut Iterator<Item = String>) -> String>(
506+
pub fn usage_with_format<F: FnMut(&mut dyn Iterator<Item = String>) -> String>(
507507
&self,
508508
mut formatter: F,
509509
) -> String {
510510
formatter(&mut self.usage_items())
511511
}
512512

513513
/// Derive usage items from a set of options.
514-
fn usage_items<'a>(&'a self) -> Box<Iterator<Item = String> + 'a> {
514+
fn usage_items<'a>(&'a self) -> Box<dyn Iterator<Item = String> + 'a> {
515515
let desc_sep = format!("\n{}", repeat(" ").take(24).collect::<String>());
516516

517517
let any_short = self.grps.iter().any(|optref| !optref.short_name.is_empty());

0 commit comments

Comments
 (0)