Skip to content

Commit

Permalink
Resolve checkstyle problem
Browse files Browse the repository at this point in the history
  • Loading branch information
tiif committed Apr 22, 2024
1 parent d2a0ab2 commit c0a60f3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/shims/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {

// FIXME: String de-duplication is needed so that we only allocate this string only once
// even when there are multiple calls to this function.
let tm_zone_ptr = this.alloc_os_str_as_c_str(
&OsString::from(tm_zone),
MiriMemoryKind::Machine.into(),
)?;
let tm_zone_ptr =
this.alloc_os_str_as_c_str(&OsString::from(tm_zone), MiriMemoryKind::Machine.into())?;

this.write_pointer(tm_zone_ptr, &this.project_field_named(&result, "tm_zone")?)?;
this.write_int_fields_named(
Expand Down

0 comments on commit c0a60f3

Please sign in to comment.