Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit cff6a62

Browse files
achimccAchim Schneider
authored andcommitted
string literal
1 parent ead5e29 commit cff6a62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/sandbox/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ fn vec_to_str(v: Vec<u8>) -> Result<String> {
374374
#[cfg(test)]
375375
mod tests {
376376
use super::*;
377-
const EXAMPLE_CODE_PATH: &str = "../../contract/lib.rs";
377+
const EXAMPLE_CODE_PATH: String = String::from("../../contract/lib.rs");
378378

379379
fn compile_check(source: String) -> Option<bool> {
380380
Sandbox::new()

0 commit comments

Comments
 (0)