Skip to content

Commit 1105ac4

Browse files
Fix docs.rs onig_sys build error:
oniguruma/src/st.c:500:23: error: too many arguments to function 'func'; expected 0, have 3
1 parent d8ea483 commit 1105ac4

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Cargo.lock

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+5
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,8 @@ harness = false
141141
name = "cratesfyi"
142142
test = false
143143
doc = false
144+
145+
[patch.crates-io.onig_sys]
146+
# Once new version (> 69.8.1) is released, we can remove this patch.
147+
git = "https://github.com/rust-onig/rust-onig"
148+
rev = "c4378abcbf30d58cf5f230c0d2e6375f2be05a47"

build.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ mod tracked {
55
use once_cell::sync::Lazy;
66
use std::{
77
collections::HashSet,
8-
io::{Error, ErrorKind, Result},
8+
io::{Error, Result},
99
path::{Path, PathBuf},
1010
sync::Mutex,
1111
};
@@ -21,10 +21,7 @@ mod tracked {
2121
if !seen.contains(path) {
2222
seen.insert(path.to_owned());
2323
let path = path.to_str().ok_or_else(|| {
24-
Error::new(
25-
ErrorKind::Other,
26-
format!("{} is a non-utf-8 path", path.display()),
27-
)
24+
Error::other(format!("{} is a non-utf-8 path", path.display()))
2825
})?;
2926
println!("cargo:rerun-if-changed={path}");
3027
}

0 commit comments

Comments
 (0)