Деница качи първо решение на 19.11.2026 19:57 (преди 11 дена)
Грешно очаква Ok(false) за свободно място. Липсват проверки за конфликт и атомарност.
Compiling solution v0.1.0 (/tmp/d20261126-2321049-w0qd2c/solution)
warning: unused `Result` that must be used
--> src/lib.rs:109:9
|
109 | cinema.reserve(2);
| ^^^^^^^^^^^^^^^^^
|
= note: this `Result` may be an `Err` variant, which should be handled
= note: `#[warn(unused_must_use)]` on by default
help: use `let _ = ...` to ignore the resulting value
|
109 | let _ = cinema.reserve(2);
| +++++++
warning: unused `Result` that must be used
--> src/lib.rs:117:9
|
117 | cinema.reserve(2);
| ^^^^^^^^^^^^^^^^^
|
= note: this `Result` may be an `Err` variant, which should be handled
help: use `let _ = ...` to ignore the resulting value
|
117 | let _ = cinema.reserve(2);
| +++++++
warning: unused `Result` that must be used
--> src/lib.rs:118:9
|
118 | cinema.cancel(2);
| ^^^^^^^^^^^^^^^^
|
= note: this `Result` may be an `Err` variant, which should be handled
help: use `let _ = ...` to ignore the resulting value
|
118 | let _ = cinema.cancel(2);
| +++++++
warning: `solution` (lib test) generated 3 warnings
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.40s
Running unittests src/lib.rs (target/debug/deps/solution-2e550d2f70dd933d)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 6 filtered out; finished in 0.00s
Грешно очаква Ok(false) за свободно място. Липсват проверки за конфликт и атомарност.