Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ impl<'cb> ApplyOptions<'cb> {
}

fn flag(&mut self, opt: raw::git_apply_flags_t, val: bool) -> &mut Self {
let opt = opt as u32;
if val {
self.raw.flags |= opt;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl Config {
/// level. A higher level means a higher priority. The first occurrence of
/// the variable will be returned here.
pub fn get_bool(&self, name: &str) -> Result<bool, Error> {
let mut out = 0 as libc::c_int;
let mut out = 0;
let name = CString::new(name)?;
unsafe {
try_call!(raw::git_config_get_bool(&mut out, &*self.raw, name));
Expand Down
1 change: 0 additions & 1 deletion src/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,6 @@ impl DiffOptions {
}

fn flag(&mut self, opt: raw::git_diff_option_t, val: bool) -> &mut DiffOptions {
let opt = opt as u32;
if val {
self.raw.flags |= opt;
} else {
Expand Down
1 change: 0 additions & 1 deletion src/email.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ impl EmailCreateOptions {
}

fn flag(&mut self, opt: raw::git_email_create_flags_t, val: bool) -> &mut Self {
let opt = opt as u32;
if val {
self.raw.flags |= opt;
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ impl Time {

/// Return the time, in seconds, from epoch
pub fn seconds(&self) -> i64 {
self.raw.time as i64
self.raw.time
}

/// Return the timezone offset, in minutes
pub fn offset_minutes(&self) -> i32 {
self.raw.offset as i32
self.raw.offset
}

/// Return whether the offset was positive or negative. Primarily useful
Expand Down
Loading