diff options
| author | varkor <github@varkor.com> | 2019-12-06 12:18:32 +0000 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-12-06 12:24:54 +0000 |
| commit | 9f1269f23c5f0c1c6a53118b51cf52415ac0bb1c (patch) | |
| tree | a7b18394302ae6733495354966b81188380a5ea8 /src/libsyntax_ext | |
| parent | 8579fe6fc3a28e5a7cbd95ada3a3305a73782c82 (diff) | |
| download | rust-9f1269f23c5f0c1c6a53118b51cf52415ac0bb1c.tar.gz rust-9f1269f23c5f0c1c6a53118b51cf52415ac0bb1c.zip | |
Rename to `then_some` and `then`
Diffstat (limited to 'src/libsyntax_ext')
| -rw-r--r-- | src/libsyntax_ext/format_foreign.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax_ext/format_foreign.rs b/src/libsyntax_ext/format_foreign.rs index f6e8b086532..0d1d2926c85 100644 --- a/src/libsyntax_ext/format_foreign.rs +++ b/src/libsyntax_ext/format_foreign.rs @@ -95,12 +95,12 @@ pub mod printf { }; // Has a special form in Rust for numbers. - let fill = c_zero.to_option("0"); + let fill = c_zero.then_some("0"); - let align = c_left.to_option("<"); + let align = c_left.then_some("<"); // Rust doesn't have an equivalent to the `' '` flag. - let sign = c_plus.to_option("+"); + let sign = c_plus.then_some("+"); // Not *quite* the same, depending on the type... let alt = c_alt; |
