Skip to content

Commit 5e56b77

Browse files
authored
Merge pull request RustPython#1817 from RustPython/coolreader18/location-copy
Make ast::Location implement Copy
2 parents 75eabfd + 7031558 commit 5e56b77

10 files changed

Lines changed: 89 additions & 129 deletions

File tree

bytecode/src/bytecode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::collections::{HashMap, HashSet};
99
use std::fmt;
1010

1111
/// Sourcode location.
12-
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
12+
#[derive(Clone, Copy, Debug, Default, PartialEq, Serialize, Deserialize)]
1313
pub struct Location {
1414
row: usize,
1515
column: usize,

0 commit comments

Comments
 (0)