Advertisement
Guest User

Untitled

a guest
Mar 24th, 2021
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.14 KB | None | 0 0
  1. andalevor@andalevor-260-a140ur:~/Programming$ git clone https://github.com/savant2212/xdr-rs.git
  2. Cloning into 'xdr-rs'...
  3. remote: Enumerating objects: 196, done.
  4. Receiving objects: 100% (196/196), 28.53 KiB | 1.50 MiB/s, done.
  5. remote: Total 196 (delta 0), reused 0 (delta 0), pack-reused 196
  6. Resolving deltas: 100% (91/91), done.
  7. andalevor@andalevor-260-a140ur:~/Programming$ cd xdr-rs/
  8. andalevor@andalevor-260-a140ur:~/Programming/xdr-rs$ cargo build
  9. Updating crates.io index
  10. Compiling byteorder v1.4.3
  11. Compiling xdr v0.1.0 (/home/andalevor/Programming/xdr-rs)
  12. warning: trait objects without an explicit `dyn` are deprecated
  13. --> src/xdr.rs:44:29
  14. |
  15. 44 | fn cause(&self) -> Option<&error::Error> {
  16. | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error`
  17. |
  18. = note: `#[warn(bare_trait_objects)]` on by default
  19.  
  20. warning: use of deprecated macro `try`: use the `?` operator instead
  21. --> src/xdr.rs:147:13
  22. |
  23. 147 | let len = try!(self.unpack::<u32>()) as usize;
  24. | ^^^
  25. |
  26. = note: `#[warn(deprecated)]` on by default
  27.  
  28. warning: use of deprecated macro `try`: use the `?` operator instead
  29. --> src/xdr.rs:178:15
  30. |
  31. 178 | let count = try!(x.unpack::<u32>()) as usize;
  32. | ^^^
  33.  
  34. warning: use of deprecated macro `try`: use the `?` operator instead
  35. --> src/xdr.rs:206:13
  36. |
  37. 206 | let len = try!(x.unpack::<u32>()) as usize;
  38. | ^^^
  39.  
  40. warning: use of deprecated macro `try`: use the `?` operator instead
  41. --> src/xdr.rs:208:15
  42. |
  43. 208 | let bytes = try!(x.unpack_opaque_fixed_len(len));
  44. | ^^^
  45.  
  46. warning: use of deprecated macro `try`: use the `?` operator instead
  47. --> src/xdr.rs:211:4
  48. |
  49. 211 | try!(x.unpack_opaque_fixed_len(pad));
  50. | ^^^
  51.  
  52. warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
  53. --> src/xdr.rs:40:26
  54. |
  55. 40 | Error::Io(ref err) => error::Error::description(err),
  56. | ^^^^^^^^^^^^^^^^^^^^^^^^^
  57.  
  58. warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting
  59. --> src/xdr.rs:48:30
  60. |
  61. 48 | Error::Io(ref err) => err.cause(),
  62. | ^^^^^
  63.  
  64. warning: 8 warnings emitted
  65.  
  66. Finished dev [unoptimized + debuginfo] target(s) in 6.53s
  67. andalevor@andalevor-260-a140ur:~/Programming/xdr-rs$ cargo test
  68. warning: trait objects without an explicit `dyn` are deprecated
  69. --> src/xdr.rs:44:29
  70. |
  71. 44 | fn cause(&self) -> Option<&error::Error> {
  72. | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error`
  73. |
  74. = note: `#[warn(bare_trait_objects)]` on by default
  75.  
  76. warning: use of deprecated macro `try`: use the `?` operator instead
  77. --> src/xdr.rs:147:13
  78. |
  79. 147 | let len = try!(self.unpack::<u32>()) as usize;
  80. | ^^^
  81. |
  82. = note: `#[warn(deprecated)]` on by default
  83.  
  84. warning: use of deprecated macro `try`: use the `?` operator instead
  85. --> src/xdr.rs:178:15
  86. |
  87. 178 | let count = try!(x.unpack::<u32>()) as usize;
  88. | ^^^
  89.  
  90. warning: use of deprecated macro `try`: use the `?` operator instead
  91. --> src/xdr.rs:206:13
  92. |
  93. 206 | let len = try!(x.unpack::<u32>()) as usize;
  94. | ^^^
  95.  
  96. warning: use of deprecated macro `try`: use the `?` operator instead
  97. --> src/xdr.rs:208:15
  98. |
  99. 208 | let bytes = try!(x.unpack_opaque_fixed_len(len));
  100. | ^^^
  101.  
  102. warning: use of deprecated macro `try`: use the `?` operator instead
  103. --> src/xdr.rs:211:4
  104. |
  105. 211 | try!(x.unpack_opaque_fixed_len(pad));
  106. | ^^^
  107.  
  108. warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
  109. --> src/xdr.rs:40:26
  110. |
  111. 40 | Error::Io(ref err) => error::Error::description(err),
  112. | ^^^^^^^^^^^^^^^^^^^^^^^^^
  113.  
  114. warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting
  115. --> src/xdr.rs:48:30
  116. |
  117. 48 | Error::Io(ref err) => err.cause(),
  118. | ^^^^^
  119.  
  120. warning: 8 warnings emitted
  121.  
  122. Compiling xdr v0.1.0 (/home/andalevor/Programming/xdr-rs)
  123. warning: trait objects without an explicit `dyn` are deprecated
  124. --> src/xdr.rs:44:29
  125. |
  126. 44 | fn cause(&self) -> Option<&error::Error> {
  127. | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error`
  128. |
  129. = note: `#[warn(bare_trait_objects)]` on by default
  130.  
  131. warning: use of deprecated macro `try`: use the `?` operator instead
  132. --> src/xdr.rs:147:13
  133. |
  134. 147 | let len = try!(self.unpack::<u32>()) as usize;
  135. | ^^^
  136. |
  137. = note: `#[warn(deprecated)]` on by default
  138.  
  139. warning: use of deprecated macro `try`: use the `?` operator instead
  140. --> src/xdr.rs:178:15
  141. |
  142. 178 | let count = try!(x.unpack::<u32>()) as usize;
  143. | ^^^
  144.  
  145. warning: use of deprecated macro `try`: use the `?` operator instead
  146. --> src/xdr.rs:206:13
  147. |
  148. 206 | let len = try!(x.unpack::<u32>()) as usize;
  149. | ^^^
  150.  
  151. warning: use of deprecated macro `try`: use the `?` operator instead
  152. --> src/xdr.rs:208:15
  153. |
  154. 208 | let bytes = try!(x.unpack_opaque_fixed_len(len));
  155. | ^^^
  156.  
  157. warning: use of deprecated macro `try`: use the `?` operator instead
  158. --> src/xdr.rs:211:4
  159. |
  160. 211 | try!(x.unpack_opaque_fixed_len(pad));
  161. | ^^^
  162.  
  163. warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
  164. --> src/xdr.rs:40:26
  165. |
  166. 40 | Error::Io(ref err) => error::Error::description(err),
  167. | ^^^^^^^^^^^^^^^^^^^^^^^^^
  168.  
  169. warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting
  170. --> src/xdr.rs:48:30
  171. |
  172. 48 | Error::Io(ref err) => err.cause(),
  173. | ^^^^^
  174.  
  175. warning: 8 warnings emitted
  176.  
  177. Finished test [unoptimized + debuginfo] target(s) in 4.43s
  178. Running unittests (target/debug/deps/xdr-828fbffba7961cb8)
  179.  
  180. running 9 tests
  181. test empty_string_test ... ok
  182. test ascii_string_test ... ok
  183. test fixed_length_array_test ... ok
  184. test r_w_primitive_test ... ok
  185. test utf_8_string_test ... ok
  186. test u16_writer_test ... ok
  187. test u16_reader_test ... ok
  188. test variable_length_array_test ... ok
  189. test string_decode_test ... ok
  190.  
  191. test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
  192.  
  193. Doc-tests xdr
  194.  
  195. running 2 tests
  196. test src/lib.rs - (line 10) ... ok
  197. test src/lib.rs - (line 22) ... ok
  198.  
  199. test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.22s
  200.  
  201. andalevor@andalevor-260-a140ur:~/Programming/xdr-rs$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement