]> git.lizzy.rs Git - rust.git/blobdiff - src/libterm/terminfo/mod.rs
Auto merge of #43710 - zackmdavis:field_init_shorthand_power_slam, r=Mark-Simulacrum
[rust.git] / src / libterm / terminfo / mod.rs
index 395d966b9f25c74b4066edf257aff62587bef446..c5e68eed4072541a2e81630dcc15345a8bd09122 100644 (file)
@@ -190,7 +190,7 @@ fn supports_attr(&self, attr: Attr) -> bool {
     fn reset(&mut self) -> io::Result<bool> {
         // are there any terminals that have color/attrs and not sgr0?
         // Try falling back to sgr, then op
-        let cmd = match ["sg0", "sgr", "op"]
+        let cmd = match ["sgr0", "sgr", "op"]
                             .iter()
                             .filter_map(|cap| self.ti.strings.get(*cap))
                             .next() {
@@ -231,7 +231,7 @@ pub fn new_with_terminfo(out: T, terminfo: TermInfo) -> TerminfoTerminal<T> {
         };
 
         TerminfoTerminal {
-            out: out,
+            out,
             ti: terminfo,
             num_colors: nc,
         }