Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kilork committed Jan 11, 2025
1 parent fb6732e commit 71bf772
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ warp = { version = "0.3", default-features = false }

in src/main.rs:

```rust, no_run
```rust, compile_fail
use std::{convert::Infallible, env, net::SocketAddr, sync::Arc};
use cookie::time::Duration;
Expand Down
3 changes: 3 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

echo "release"
6 changes: 5 additions & 1 deletion src/configurable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ pub trait Configurable {
///
/// # Examples
///
/// ```
/// ```rust, no_run
///# use openid::{Configurable, Config};
///# #[derive(Default)]
///# struct MyType;
///# impl Configurable for MyType { fn config(&self) -> &Config { todo!() }}
/// let config = MyType::default().config();
/// ```
fn config(&self) -> &Config;
Expand Down
2 changes: 1 addition & 1 deletion templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ in Cargo.toml:

in src/main.rs:

{{ codeblock "rust, no_run" ( http_get (replace "https://raw.githubusercontent.com/kilork/openid-examples/vVERSION/examples/warp.rs" "VERSION" (env_var "OPENID_RUST_MAJOR_VERSION") ) ) }}
{{ codeblock "rust, compile_fail" ( http_get (replace "https://raw.githubusercontent.com/kilork/openid-examples/vVERSION/examples/warp.rs" "VERSION" (env_var "OPENID_RUST_MAJOR_VERSION") ) ) }}

See full example: [openid-examples: warp](https://github.com/kilork/openid-examples/blob/v{{ env_var "OPENID_RUST_MAJOR_VERSION" }}/examples/warp.rs)

0 comments on commit 71bf772

Please sign in to comment.