mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-31 23:02:37 +00:00
ec9b5816a8
This commit reverts most ofdea940c7
andd89c7024
. The "fix" is to run attach fairings on a new thread. If a runtime is already running, it is used. Otherwise, the future is executed in a single-threaded executor.
8 lines
114 B
Rust
8 lines
114 B
Rust
struct A;
|
|
|
|
#[test]
|
|
#[should_panic]
|
|
fn twice_managed_state() {
|
|
let _ = rocket::ignite().manage(A).manage(A);
|
|
}
|