Skip to content

Commit

Permalink
Deploying to gh-pages from @ fab3026 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
github-merge-queue[bot] committed Dec 1, 2024
1 parent d3d7e9e commit ef8abdd
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 18 deletions.
3 changes: 1 addition & 2 deletions code-formatting.html
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ <h3><a class="header" href="#when-using-bindgen-as-a-library" id="when-using-bin

assert!(
output.status.success(),
&quot;Unsuccessful status code when running `rustup`: {:?}&quot;,
output
&quot;Unsuccessful status code when running `rustup`: {output:?}&quot;,
);

let rustfmt_path =
Expand Down
15 changes: 7 additions & 8 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ <h1><a class="header" href="#write-a-sanity-test" id="write-a-sanity-test">Write
r if r == (BZ_PARAM_ERROR as _) =&gt; panic!(&quot;BZ_PARAM_ERROR&quot;),
r if r == (BZ_MEM_ERROR as _) =&gt; panic!(&quot;BZ_MEM_ERROR&quot;),
r if r == (BZ_OK as _) =&gt; {},
r =&gt; panic!(&quot;Unknown return value = {}&quot;, r),
r =&gt; panic!(&quot;Unknown return value = {r}&quot;),
}

// Compress `input` into `compressed_output`.
Expand All @@ -449,15 +449,15 @@ <h1><a class="header" href="#write-a-sanity-test" id="write-a-sanity-test">Write
r if r == (BZ_FINISH_OK as _) =&gt; panic!(&quot;BZ_FINISH_OK&quot;),
r if r == (BZ_SEQUENCE_ERROR as _) =&gt; panic!(&quot;BZ_SEQUENCE_ERROR&quot;),
r if r == (BZ_STREAM_END as _) =&gt; {},
r =&gt; panic!(&quot;Unknown return value = {}&quot;, r),
r =&gt; panic!(&quot;Unknown return value = {r}&quot;),
}

// Finish the compression stream.
let result = BZ2_bzCompressEnd(&amp;mut stream as *mut _);
match result {
r if r == (BZ_PARAM_ERROR as _) =&gt; panic!(&quot;BZ_PARAM_ERROR&quot;),
r if r == (BZ_OK as _) =&gt; {},
r =&gt; panic!(&quot;Unknown return value = {}&quot;, r),
r =&gt; panic!(&quot;Unknown return value = {r}&quot;),
}

// Construct a decompression stream.
Expand All @@ -470,7 +470,7 @@ <h1><a class="header" href="#write-a-sanity-test" id="write-a-sanity-test">Write
r if r == (BZ_PARAM_ERROR as _) =&gt; panic!(&quot;BZ_PARAM_ERROR&quot;),
r if r == (BZ_MEM_ERROR as _) =&gt; panic!(&quot;BZ_MEM_ERROR&quot;),
r if r == (BZ_OK as _) =&gt; {},
r =&gt; panic!(&quot;Unknown return value = {}&quot;, r),
r =&gt; panic!(&quot;Unknown return value = {r}&quot;),
}

// Decompress `compressed_output` into `decompressed_output`.
Expand All @@ -486,15 +486,15 @@ <h1><a class="header" href="#write-a-sanity-test" id="write-a-sanity-test">Write
r if r == (BZ_MEM_ERROR as _) =&gt; panic!(&quot;BZ_MEM_ERROR&quot;),
r if r == (BZ_OK as _) =&gt; panic!(&quot;BZ_OK&quot;),
r if r == (BZ_STREAM_END as _) =&gt; {},
r =&gt; panic!(&quot;Unknown return value = {}&quot;, r),
r =&gt; panic!(&quot;Unknown return value = {r}&quot;),
}

// Close the decompression stream.
let result = BZ2_bzDecompressEnd(&amp;mut stream as *mut _);
match result {
r if r == (BZ_PARAM_ERROR as _) =&gt; panic!(&quot;BZ_PARAM_ERROR&quot;),
r if r == (BZ_OK as _) =&gt; {},
r =&gt; panic!(&quot;Unknown return value = {}&quot;, r),
r =&gt; panic!(&quot;Unknown return value = {r}&quot;),
}

assert_eq!(input, &amp;decompressed_output[..]);
Expand Down Expand Up @@ -1015,8 +1015,7 @@ <h3><a class="header" href="#when-using-bindgen-as-a-library" id="when-using-bin

assert!(
output.status.success(),
&quot;Unsuccessful status code when running `rustup`: {:?}&quot;,
output
&quot;Unsuccessful status code when running `rustup`: {output:?}&quot;,
);

let rustfmt_path =
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions tutorial-5.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ <h1><a class="header" href="#write-a-sanity-test" id="write-a-sanity-test">Write
r if r == (BZ_PARAM_ERROR as _) =&gt; panic!(&quot;BZ_PARAM_ERROR&quot;),
r if r == (BZ_MEM_ERROR as _) =&gt; panic!(&quot;BZ_MEM_ERROR&quot;),
r if r == (BZ_OK as _) =&gt; {},
r =&gt; panic!(&quot;Unknown return value = {}&quot;, r),
r =&gt; panic!(&quot;Unknown return value = {r}&quot;),
}

// Compress `input` into `compressed_output`.
Expand All @@ -222,15 +222,15 @@ <h1><a class="header" href="#write-a-sanity-test" id="write-a-sanity-test">Write
r if r == (BZ_FINISH_OK as _) =&gt; panic!(&quot;BZ_FINISH_OK&quot;),
r if r == (BZ_SEQUENCE_ERROR as _) =&gt; panic!(&quot;BZ_SEQUENCE_ERROR&quot;),
r if r == (BZ_STREAM_END as _) =&gt; {},
r =&gt; panic!(&quot;Unknown return value = {}&quot;, r),
r =&gt; panic!(&quot;Unknown return value = {r}&quot;),
}

// Finish the compression stream.
let result = BZ2_bzCompressEnd(&amp;mut stream as *mut _);
match result {
r if r == (BZ_PARAM_ERROR as _) =&gt; panic!(&quot;BZ_PARAM_ERROR&quot;),
r if r == (BZ_OK as _) =&gt; {},
r =&gt; panic!(&quot;Unknown return value = {}&quot;, r),
r =&gt; panic!(&quot;Unknown return value = {r}&quot;),
}

// Construct a decompression stream.
Expand All @@ -243,7 +243,7 @@ <h1><a class="header" href="#write-a-sanity-test" id="write-a-sanity-test">Write
r if r == (BZ_PARAM_ERROR as _) =&gt; panic!(&quot;BZ_PARAM_ERROR&quot;),
r if r == (BZ_MEM_ERROR as _) =&gt; panic!(&quot;BZ_MEM_ERROR&quot;),
r if r == (BZ_OK as _) =&gt; {},
r =&gt; panic!(&quot;Unknown return value = {}&quot;, r),
r =&gt; panic!(&quot;Unknown return value = {r}&quot;),
}

// Decompress `compressed_output` into `decompressed_output`.
Expand All @@ -259,15 +259,15 @@ <h1><a class="header" href="#write-a-sanity-test" id="write-a-sanity-test">Write
r if r == (BZ_MEM_ERROR as _) =&gt; panic!(&quot;BZ_MEM_ERROR&quot;),
r if r == (BZ_OK as _) =&gt; panic!(&quot;BZ_OK&quot;),
r if r == (BZ_STREAM_END as _) =&gt; {},
r =&gt; panic!(&quot;Unknown return value = {}&quot;, r),
r =&gt; panic!(&quot;Unknown return value = {r}&quot;),
}

// Close the decompression stream.
let result = BZ2_bzDecompressEnd(&amp;mut stream as *mut _);
match result {
r if r == (BZ_PARAM_ERROR as _) =&gt; panic!(&quot;BZ_PARAM_ERROR&quot;),
r if r == (BZ_OK as _) =&gt; {},
r =&gt; panic!(&quot;Unknown return value = {}&quot;, r),
r =&gt; panic!(&quot;Unknown return value = {r}&quot;),
}

assert_eq!(input, &amp;decompressed_output[..]);
Expand Down

0 comments on commit ef8abdd

Please sign in to comment.