File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 2121//! extern crate num;
2222//!
2323//! use num::bigint::BigInt;
24- //! use num::rational::{Ratio, BigRational}:
24+ //! use num::rational::{Ratio, BigRational};
2525//!
2626//! fn approx_sqrt(number: u64, iterations: uint) -> BigRational {
2727//! let start: Ratio<BigInt> = Ratio::from_integer(FromPrimitive::from_u64(number).unwrap());
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ impl<T: Writer> Terminal<T> for TerminfoTerminal<T> {
184184 cap = self . ti . strings . find_equiv ( & ( "op" ) ) ;
185185 }
186186 }
187- let s = cap. map_or ( Err ( "can't find terminfo capability `sgr0`" . to_owned ( ) ) , |op| {
187+ let s = cap. map_or ( Err ( "can't find terminfo capability `sgr0`" . to_strbuf ( ) ) , |op| {
188188 expand ( op. as_slice ( ) , [ ] , & mut Variables :: new ( ) )
189189 } ) ;
190190 if s. is_ok ( ) {
You can’t perform that action at this time.
0 commit comments