File tree 2 files changed +2
-2
lines changed 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 21
21
//! extern crate num;
22
22
//!
23
23
//! use num::bigint::BigInt;
24
- //! use num::rational::{Ratio, BigRational}:
24
+ //! use num::rational::{Ratio, BigRational};
25
25
//!
26
26
//! fn approx_sqrt(number: u64, iterations: uint) -> BigRational {
27
27
//! 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> {
184
184
cap = self . ti . strings . find_equiv ( & ( "op" ) ) ;
185
185
}
186
186
}
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| {
188
188
expand ( op. as_slice ( ) , [ ] , & mut Variables :: new ( ) )
189
189
} ) ;
190
190
if s. is_ok ( ) {
You can’t perform that action at this time.
0 commit comments