Skip to content

Commit

Permalink
misc: fix bench error
Browse files Browse the repository at this point in the history
  • Loading branch information
chensoft committed May 1, 2024
1 parent f4cf02b commit 0f5865f
Show file tree
Hide file tree
Showing 5 changed files with 799 additions and 799 deletions.
6 changes: 3 additions & 3 deletions benches/data/plain_1.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test data comes from https://github.com/github/rest-api-description
const URLS_1: &[&str] = &[
"/repos/octocat-repo/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b",
const URLS_1: &[&[u8]] = &[
b"/repos/octocat-repo/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b",
];

#[allow(dead_code)]
const PATH_1: &str = URLS_1[URLS_1.len() - 1];
const PATH_1: &[u8] = URLS_1[URLS_1.len() - 1];
36 changes: 18 additions & 18 deletions benches/data/plain_16.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
// Test data comes from https://github.com/github/rest-api-description
const URLS_16: &[&str] = &[
"/repos/octocat-repo/hello-world",
"/feeds",
"/repos/octokit/octokit.rb/issues/123",
"/repos/octocat/Hello-World-Template/subscription",
"/repos/octocat/Hello-World/branches/master/protection/required_status_checks",
"/repos/octocat/Hello-World/hooks/1/test",
"/users/Octocoders/orgs",
"/repos/repo/a-package/security-advisories/GHSA-1234-5678-9012",
"/licenses/unlicense",
"/users/octokitten/repos",
"/repos/Codertocat/Hello-World",
"/marketplace_listing/plans/1313/accounts",
"/repos/octocat/Hello-World/git/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e",
"/repos/octocat/octo-name-repo/downloads",
"/repos/github/hello-world/pages/builds/latest",
"/repos/octocat-repo/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b",
const URLS_16: &[&[u8]] = &[
b"/repos/octocat-repo/hello-world",
b"/feeds",
b"/repos/octokit/octokit.rb/issues/123",
b"/repos/octocat/Hello-World-Template/subscription",
b"/repos/octocat/Hello-World/branches/master/protection/required_status_checks",
b"/repos/octocat/Hello-World/hooks/1/test",
b"/users/Octocoders/orgs",
b"/repos/repo/a-package/security-advisories/GHSA-1234-5678-9012",
b"/licenses/unlicense",
b"/users/octokitten/repos",
b"/repos/Codertocat/Hello-World",
b"/marketplace_listing/plans/1313/accounts",
b"/repos/octocat/Hello-World/git/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e",
b"/repos/octocat/octo-name-repo/downloads",
b"/repos/github/hello-world/pages/builds/latest",
b"/repos/octocat-repo/hello-world/git/commits/f14d7debf9775f957cf4f1e8176da0786431f72b",
];

#[allow(dead_code)]
const PATH_16: &str = URLS_16[URLS_16.len() - 1];
const PATH_16: &[u8] = URLS_16[URLS_16.len() - 1];

0 comments on commit 0f5865f

Please sign in to comment.