Skip to content

Commit

Permalink
docs(rsjudge-utils): ♻️ make doctest type empty type
Browse files Browse the repository at this point in the history
see <https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types>, enum with no varients is empty type
  • Loading branch information
Jisu-Woniu committed Jul 18, 2024
1 parent b89b278 commit 84f04f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ changelog = "packaging/deb/changelog"
features = ["default"]
conf-files = ["/etc/rsjudge/services.toml", "/etc/rsjudge/executors.toml"]
extended-description = "An online judge sandbox server in Rust, inspired by go-judge, for SASTOJ."
maintainer = "Xiaoqing Xuan <[email protected]>"
maintainer = "JisuWoniu <[email protected]>"
maintainer-scripts = "packaging/deb/"
depends = "$auto, adduser, libc6, libgcc-s1, libstdc++6, libssl1.1, libzstd1, libzstd-dev"
recommends = "gcc, g++, python3"
Expand Down Expand Up @@ -115,30 +115,37 @@ mode = "644"
[[package.metadata.generate-rpm.assets]]
source = "README.adoc"
dest = "/usr/share/doc/rsjudge/README.adoc"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "target/assets/rsjudge.bash"
dest = "/usr/share/bash-completion/completions/rsjudge"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "target/assets/_rsjudge"
dest = "/usr/share/zsh/site-functions/_rsjudge"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "target/assets/rsjudge.fish"
dest = "/usr/share/fish/vendor_completions.d/rsjudge.fish"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "packaging/shared/service"
dest = "/usr/lib/systemd/system/rsjudge.service"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "packaging/shared/tmpfile"
dest = "/usr/lib/tmpfiles.d/rsjudge.conf"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "packaging/shared/sysuser"
dest = "/usr/lib/sysusers.d/rsjudge.conf"
mode = "644"

[dependencies]
# Workspace dependencies
Expand Down
2 changes: 1 addition & 1 deletion crates/rsjudge-utils/src/error_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ macro_rules! log_if_error {
/// let _ = log_if_error!(S);
/// ```
#[cfg(doctest)]
pub struct LoggingOnNonResult;
pub enum LoggingOnNonResult {}

0 comments on commit 84f04f1

Please sign in to comment.